diff --git a/react/src/components/dashboard/walletsProgress.js b/react/src/components/dashboard/walletsProgress.js index 8815e49..c3157ce 100644 --- a/react/src/components/dashboard/walletsProgress.js +++ b/react/src/components/dashboard/walletsProgress.js @@ -2,6 +2,22 @@ import React from 'react'; import { translate } from '../../translate/translate'; class WalletsProgress extends React.Component { + constructor(props) { + super(props); + this.isFullySynced = this.isFullySynced.bind(this); + } + + isFullySynced() { + if ((Number(this.props.Dashboard.progress.balances) + + Number(this.props.Dashboard.progress.validated) + + Number(this.props.Dashboard.progress.bundles) + + Number(this.props.Dashboard.progress.utxo)) / 4 === 100) { + return true; + } else { + return false; + } + } + render() { if (this.props && this.props.ActiveCoin && this.props.ActiveCoin.mode === 'full' && this.props.Dashboard.progress) { if (this.props.Dashboard.progress && this.props.Dashboard.progress.error) { @@ -12,12 +28,15 @@ class WalletsProgress extends React.Component {