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:
parent
e1719191f4
commit
bc4efa1807
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user