aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-09-07 04:59:41 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-07 04:59:41 +0800
commitb5f48730cd2c024997d30fa272ab08ba7f686893 (patch)
treede7c55ba388a8f3746699b55e5e2cb157bbbccf9 /app
parent3e2bd1988180d058c3637f84e47a2382cdb5513c (diff)
downloadtangerine-wallet-browser-b5f48730cd2c024997d30fa272ab08ba7f686893.tar
tangerine-wallet-browser-b5f48730cd2c024997d30fa272ab08ba7f686893.tar.gz
tangerine-wallet-browser-b5f48730cd2c024997d30fa272ab08ba7f686893.tar.bz2
tangerine-wallet-browser-b5f48730cd2c024997d30fa272ab08ba7f686893.tar.lz
tangerine-wallet-browser-b5f48730cd2c024997d30fa272ab08ba7f686893.tar.xz
tangerine-wallet-browser-b5f48730cd2c024997d30fa272ab08ba7f686893.tar.zst
tangerine-wallet-browser-b5f48730cd2c024997d30fa272ab08ba7f686893.zip
Properly update keyring state on new account addition.
Diffstat (limited to 'app')
-rw-r--r--app/scripts/keyring-controller.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 2edc8060e..fd57fac70 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -171,9 +171,9 @@ class KeyringController extends EventEmitter {
return this.setupAccounts(checkedAccounts)
})
.then(() => this.persistAllKeyrings())
+ .then(() => this._updateMemStoreKeyrings())
.then(() => this.fullUpdate())
.then(() => {
- this._updateMemStoreKeyrings()
return keyring
})
}
@@ -208,6 +208,7 @@ class KeyringController extends EventEmitter {
return selectedKeyring.addAccounts(1)
.then(this.setupAccounts.bind(this))
.then(this.persistAllKeyrings.bind(this))
+ .then(this._updateMemStoreKeyrings.bind(this))
.then(this.fullUpdate.bind(this))
}