diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-05 21:04:16 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-05 21:24:51 +0800 |
commit | 783559f94ef7370d2fef88327c500fbe826ac0b0 (patch) | |
tree | 569a9f51ec6f2414c3e3e87116c305fabf1f602c /ui/app/components/token-balance.js | |
parent | 0116ea9b95c5a9ab35d23e814a1783ef2bc11c25 (diff) | |
download | tangerine-wallet-browser-783559f94ef7370d2fef88327c500fbe826ac0b0.tar tangerine-wallet-browser-783559f94ef7370d2fef88327c500fbe826ac0b0.tar.gz tangerine-wallet-browser-783559f94ef7370d2fef88327c500fbe826ac0b0.tar.bz2 tangerine-wallet-browser-783559f94ef7370d2fef88327c500fbe826ac0b0.tar.lz tangerine-wallet-browser-783559f94ef7370d2fef88327c500fbe826ac0b0.tar.xz tangerine-wallet-browser-783559f94ef7370d2fef88327c500fbe826ac0b0.tar.zst tangerine-wallet-browser-783559f94ef7370d2fef88327c500fbe826ac0b0.zip |
Don't update token balances after tracker is stopped
Diffstat (limited to 'ui/app/components/token-balance.js')
-rw-r--r-- | ui/app/components/token-balance.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/components/token-balance.js b/ui/app/components/token-balance.js index 5464294ce..99ca7335c 100644 --- a/ui/app/components/token-balance.js +++ b/ui/app/components/token-balance.js @@ -98,6 +98,10 @@ TokenBalance.prototype.componentDidUpdate = function (nextProps) { } TokenBalance.prototype.updateBalance = function (tokens = []) { + if (!this.tracker.running) { + return + } + const [{ string, symbol }] = tokens this.setState({ |