aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-10-20 00:59:57 +0800
committerDan Finlay <dan@danfinlay.com>2017-10-20 00:59:57 +0800
commit0ae406e489a635ea094913ee5c20d1e8f2165db5 (patch)
tree5e98a42ee9b578e5c25b80391e108e443f4c59f5 /app
parent942de9ba0269a7a7d35bdfcb154a087e86b12b2b (diff)
downloadtangerine-wallet-browser-0ae406e489a635ea094913ee5c20d1e8f2165db5.tar
tangerine-wallet-browser-0ae406e489a635ea094913ee5c20d1e8f2165db5.tar.gz
tangerine-wallet-browser-0ae406e489a635ea094913ee5c20d1e8f2165db5.tar.bz2
tangerine-wallet-browser-0ae406e489a635ea094913ee5c20d1e8f2165db5.tar.lz
tangerine-wallet-browser-0ae406e489a635ea094913ee5c20d1e8f2165db5.tar.xz
tangerine-wallet-browser-0ae406e489a635ea094913ee5c20d1e8f2165db5.tar.zst
tangerine-wallet-browser-0ae406e489a635ea094913ee5c20d1e8f2165db5.zip
Allow computed balances to enumerate its own view
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/computed-balances.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/controllers/computed-balances.js b/app/scripts/controllers/computed-balances.js
index 009405d29..9855f715e 100644
--- a/app/scripts/controllers/computed-balances.js
+++ b/app/scripts/controllers/computed-balances.js
@@ -20,9 +20,10 @@ class ComputedbalancesController {
}
updateAllBalances () {
- for (let address in this.accountTracker.store.getState().accounts) {
+ Object.keys(this.balances).forEach((balance) => {
+ const address = balance.address
this.balances[address].updateBalance()
- }
+ })
}
_initBalanceUpdating () {