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:
parent
942de9ba02
commit
0ae406e489
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user