Browse Source

possible win sync workaround fix

v0.25
pbca26 7 years ago
parent
commit
82aed04e5f
  1. 4
      react/src/components/dashboard/walletsProgress/walletsProgress.js

4
react/src/components/dashboard/walletsProgress/walletsProgress.js

@ -144,7 +144,9 @@ class WalletsProgress extends React.Component {
isWinSyncPercBelowThreshold() {
if (this.state.prevProgress &&
this.state.prevProgress.longestchain &&
this.state.prevProgress.blocks) {
this.state.prevProgress.blocks &&
this.state.prevProgress.longestchain > 0 &&
this.state.prevProgress.blocks > 0) {
if (Number(this.state.prevProgress.blocks) * 100 / Number(this.state.prevProgress.longestchain) < 80) {
return true;
}

Loading…
Cancel
Save