mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
eth-store - emit update on new account add
This commit is contained in:
parent
f49fb149cc
commit
ef81bde98b
@ -43,7 +43,9 @@ EthereumStore.prototype.addAccount = function (address) {
|
||||
self._currentState.accounts[address] = {}
|
||||
self._didUpdate()
|
||||
if (!self.currentBlockNumber) return
|
||||
self._updateAccount(address, noop)
|
||||
self._updateAccount(address, () => {
|
||||
self._didUpdate()
|
||||
})
|
||||
}
|
||||
|
||||
EthereumStore.prototype.removeAccount = function (address) {
|
||||
|
Loading…
Reference in New Issue
Block a user