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

eth-store - update store state after manipulating

This commit is contained in:
kumavis 2017-02-03 16:07:58 -08:00
parent e1719191f4
commit bc4efa1807

View File

@ -92,6 +92,7 @@ class EthereumStore extends ObservableStore {
// only populate if the entry is still present
if (accounts[address]) {
accounts[address] = result
this.updateState({ accounts })
}
cb(null, result)
})
@ -111,6 +112,7 @@ class EthereumStore extends ObservableStore {
// only populate if the entry is still present
if (transactions[txHash]) {
transactions[txHash] = result
this.updateState({ transactions })
}
cb(null, result)
})