Browse Source

Merge branch 'redux' into tx-history-improvements

all-modes
petitPapillon 8 years ago
parent
commit
921fa931e3
  1. 14
      react/src/components/login/login.js

14
react/src/components/login/login.js

@ -53,6 +53,9 @@ class Login extends React.Component {
this.resizeLoginTextarea = this.resizeLoginTextarea.bind(this); this.resizeLoginTextarea = this.resizeLoginTextarea.bind(this);
} }
// the setInterval handler for 'activeCoins'
_iguanaActiveCoins = null;
isCustomWalletSeed() { isCustomWalletSeed() {
return this.state.customWalletSeed; return this.state.customWalletSeed;
} }
@ -131,10 +134,13 @@ class Login extends React.Component {
}); });
if (!this.props.Interval.interval.activeCoins) { if (!this.props.Interval.interval.activeCoins) {
const _iguanaActiveCoins = setInterval(() => { // only start a new 'activeCoins' interval if a previous one doesn't exist
Store.dispatch(getDexCoins()); if (!this._iguanaActiveCoins) {
}, IGUNA_ACTIVE_COINS_TIMEOUT); this._iguanaActiveCoins = setInterval(() => {
Store.dispatch(startInterval('activeCoins', _iguanaActiveCoins)); Store.dispatch(getDexCoins());
}, IGUNA_ACTIVE_COINS_TIMEOUT);
Store.dispatch(startInterval('activeCoins', this._iguanaActiveCoins));
}
} }
document.body.className = 'page-login layout-full page-dark'; document.body.className = 'page-login layout-full page-dark';

Loading…
Cancel
Save