aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/eth-store.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-15 13:46:40 +0800
committerkumavis <aaron@kumavis.me>2017-01-15 13:46:40 +0800
commitef81bde98b85a3add8a5e5681f8c9515567c97ea (patch)
tree8cc5d1ee12acd3ff00a13a2f3a19550666ccc9ea /app/scripts/lib/eth-store.js
parentf49fb149ccae56f5522a892778d83360856fe880 (diff)
downloadtangerine-wallet-browser-ef81bde98b85a3add8a5e5681f8c9515567c97ea.tar
tangerine-wallet-browser-ef81bde98b85a3add8a5e5681f8c9515567c97ea.tar.gz
tangerine-wallet-browser-ef81bde98b85a3add8a5e5681f8c9515567c97ea.tar.bz2
tangerine-wallet-browser-ef81bde98b85a3add8a5e5681f8c9515567c97ea.tar.lz
tangerine-wallet-browser-ef81bde98b85a3add8a5e5681f8c9515567c97ea.tar.xz
tangerine-wallet-browser-ef81bde98b85a3add8a5e5681f8c9515567c97ea.tar.zst
tangerine-wallet-browser-ef81bde98b85a3add8a5e5681f8c9515567c97ea.zip
eth-store - emit update on new account add
Diffstat (limited to 'app/scripts/lib/eth-store.js')
-rw-r--r--app/scripts/lib/eth-store.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/lib/eth-store.js b/app/scripts/lib/eth-store.js
index a42b2417f..7e2caf884 100644
--- a/app/scripts/lib/eth-store.js
+++ b/app/scripts/lib/eth-store.js
@@ -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) {