|
@ -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'; |
|
|