diff --git a/react/src/components/dashboard/walletsNativeSyncProgress.js b/react/src/components/dashboard/walletsNativeSyncProgress.js index 7ab91ff..abce78d 100644 --- a/react/src/components/dashboard/walletsNativeSyncProgress.js +++ b/react/src/components/dashboard/walletsNativeSyncProgress.js @@ -3,31 +3,52 @@ import { translate } from '../../translate/translate'; class WalletsNativeSyncProgress extends React.Component { renderSyncPercentagePlaceholder() { - if (this.props.Dashboard.progress.blocks > 0 && this.props.Dashboard.progress.longestchain === 0) { + if (this.props.Dashboard.progress.blocks > 0 && + this.props.Dashboard.progress.longestchain === 0) { return ( -
- {translate('INDEX.SYNC_ERR_LONGESTCHAIN')} +
+ { translate('INDEX.SYNC_ERR_LONGESTCHAIN') }
); } else if (this.props.Dashboard.progress.blocks === 0) { return ( -
- {translate('INDEX.SYNC_ERR_BLOCKS')} +
+ { translate('INDEX.SYNC_ERR_BLOCKS') }
); } else { var syncPercentage = (parseFloat(parseInt(this.props.Dashboard.progress.blocks, 10) * 100 / parseInt(this.props.Dashboard.progress.longestchain, 10)).toFixed(2) + '%').replace('NaN', 0); return ( -
- {syncPercentage} | {this.props.Dashboard.progress.blocks} / {this.props.Dashboard.progress.longestchain} | {translate('INDEX.CONNECTIONS')}: {this.props.Dashboard.progress.connections} +
+ { syncPercentage } | { this.props.Dashboard.progress.blocks } / { this.props.Dashboard.progress.longestchain } | { translate('INDEX.CONNECTIONS') }: { this.props.Dashboard.progress.connections }
); } } renderActivatingBestChainProgress() { - if (this.props.Settings && this.props.Settings.debugLog && this.props.Dashboard.progress.remoteKMDNode) { + if (this.props.Settings && + this.props.Settings.debugLog && + this.props.Dashboard.progress.remoteKMDNode) { if (this.props.Settings.debugLog.indexOf('UpdateTip') > -1) { let temp = this.props.Settings.debugLog.split(' '); let currentBestChain; @@ -46,16 +67,21 @@ class WalletsNativeSyncProgress extends React.Component { } renderChainActivationNotification() { - if ((this.props.Dashboard.progress.blocks < this.props.Dashboard.progress.longestchain) || this.props.Dashboard.progress.remoteKMDNode) { + if ((this.props.Dashboard.progress.blocks < this.props.Dashboard.progress.longestchain) || + this.props.Dashboard.progress.remoteKMDNode) { return ( -