Browse Source

chain activation render fix

all-modes
pbca26 8 years ago
parent
commit
087258342b
  1. 2
      react/src/components/dashboard/main/dashboard.render.js
  2. 8
      react/src/components/dashboard/walletsNativeSyncProgress/walletsNativeSyncProgress.js

2
react/src/components/dashboard/main/dashboard.render.js

@ -28,7 +28,7 @@ const DashboardRender = function() {
<CoinTile {...this.props} />
<WalletsNav {...this.props} />
<WalletsProgress {...this.props} />
{ !this.isNativeMode() && <WalletsBalance {...this.props} />}
{ !this.isNativeMode() && <WalletsBalance {...this.props} /> }
<SendCoin {...this.props} />
<WalletsData {...this.props} />
<WalletsTxInfo {...this.props} />

8
react/src/components/dashboard/walletsNativeSyncProgress/walletsNativeSyncProgress.js

@ -89,7 +89,7 @@ class WalletsNativeSyncProgress extends React.Component {
for (let i = 0; i < temp.length; i++) {
if (temp[i].indexOf('Progress=') > -1) {
currentProgress = Number(temp[i].replace('Progress=', '')) * 100;
currentProgress = (Number(temp[i].replace('Progress=', '')) * 100).toFixed(2);
}
}
@ -116,14 +116,16 @@ class WalletsNativeSyncProgress extends React.Component {
}
renderChainActivationNotification() {
if (this.props.Dashboard.progress) {
return ChainActivationNotificationRender.call(this);
/* if (this.props.Dashboard.progress) {
if ((!this.props.Dashboard.progress.blocks && !this.props.Dashboard.progress.longestchain) ||
(this.props.Dashboard.progress.blocks < this.props.Dashboard.progress.longestchain)) {
return ChainActivationNotificationRender.call(this);
}
} else {
return null;
}
} */
}
render() {

Loading…
Cancel
Save