Browse Source

Merge branch 'redux' into tx-history-improvements

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

10
react/src/components/login/login.js

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

Loading…
Cancel
Save