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

Merge pull request #1087 from MetaMask/kumavis-refactor7

bugfix - eth-store - update store state after manipulating
This commit is contained in:
Kevin Serrano 2017-02-03 16:17:04 -08:00 committed by GitHub
commit 24ff38e973

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)
})