1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Allow computed balances to enumerate its own view

This commit is contained in:
Dan Finlay 2017-10-19 09:59:57 -07:00
parent 942de9ba02
commit 0ae406e489

View File

@ -20,9 +20,10 @@ class ComputedbalancesController {
} }
updateAllBalances () { updateAllBalances () {
for (let address in this.accountTracker.store.getState().accounts) { Object.keys(this.balances).forEach((balance) => {
const address = balance.address
this.balances[address].updateBalance() this.balances[address].updateBalance()
} })
} }
_initBalanceUpdating () { _initBalanceUpdating () {