1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +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 () {
for (let address in this.accountTracker.store.getState().accounts) {
Object.keys(this.balances).forEach((balance) => {
const address = balance.address
this.balances[address].updateBalance()
}
})
}
_initBalanceUpdating () {