Browse Source

coin tile spv update fix

v0.25
pbca26 7 years ago
parent
commit
d1ce5ea517
  1. 8
      react/src/components/dashboard/coinTile/coinTileItem.js

8
react/src/components/dashboard/coinTile/coinTileItem.js

@ -266,8 +266,7 @@ class CoinTileItem extends React.Component {
) )
); );
if (!this.props.Dashboard.skipFullDashboardUpdate && if (!this.props.Dashboard.skipFullDashboardUpdate) {
this.props.ActiveCoin.activeSection === 'default') {
Store.dispatch(getDashboardUpdate(coin, _propsDashboard)); Store.dispatch(getDashboardUpdate(coin, _propsDashboard));
} }
} else { } else {
@ -280,12 +279,15 @@ class CoinTileItem extends React.Component {
) )
); );
} }
} else if (mode === 'spv' && this.props.Dashboard.electrumCoins[coin].pub && this.props.ActiveCoin.activeSection === 'default') { } else if (mode === 'spv' && this.props.Dashboard.electrumCoins[coin].pub) {
Store.dispatch(shepherdElectrumBalance(coin, this.props.Dashboard.electrumCoins[coin].pub)); Store.dispatch(shepherdElectrumBalance(coin, this.props.Dashboard.electrumCoins[coin].pub));
if (this.props.ActiveCoin.activeSection === 'default') {
Store.dispatch(shepherdElectrumTransactions(coin, this.props.Dashboard.electrumCoins[coin].pub)); Store.dispatch(shepherdElectrumTransactions(coin, this.props.Dashboard.electrumCoins[coin].pub));
} }
} }
} }
}
_dashboardChangeActiveCoin(coin, mode, skipCoinsArrUpdate) { _dashboardChangeActiveCoin(coin, mode, skipCoinsArrUpdate) {
if (coin !== this.props.ActiveCoin.coin) { if (coin !== this.props.ActiveCoin.coin) {

Loading…
Cancel
Save