aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-10-21 02:00:38 +0800
committerDan Finlay <dan@danfinlay.com>2016-10-21 02:00:38 +0800
commite5c95d68f80eba3e3d4645f7ac1f6606d0dddd52 (patch)
treec2ad537bdd0c1b661ad390bcf67f0f970ae5975f /app
parent2132477797660a87fec20dbc0a3f839895b23309 (diff)
downloadtangerine-wallet-browser-e5c95d68f80eba3e3d4645f7ac1f6606d0dddd52.tar
tangerine-wallet-browser-e5c95d68f80eba3e3d4645f7ac1f6606d0dddd52.tar.gz
tangerine-wallet-browser-e5c95d68f80eba3e3d4645f7ac1f6606d0dddd52.tar.bz2
tangerine-wallet-browser-e5c95d68f80eba3e3d4645f7ac1f6606d0dddd52.tar.lz
tangerine-wallet-browser-e5c95d68f80eba3e3d4645f7ac1f6606d0dddd52.tar.xz
tangerine-wallet-browser-e5c95d68f80eba3e3d4645f7ac1f6606d0dddd52.tar.zst
tangerine-wallet-browser-e5c95d68f80eba3e3d4645f7ac1f6606d0dddd52.zip
Fix state updating after vault creation and unlocking
Diffstat (limited to 'app')
-rw-r--r--app/scripts/keyring-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 416d6093c..84601916f 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -72,7 +72,7 @@ module.exports = class KeyringController extends EventEmitter {
})
.then((encryptedString) => {
this.configManager.setVault(encryptedString)
- cb(null, [])
+ cb(null, this.getState())
})
.catch((err) => {
cb(err)
@@ -82,7 +82,7 @@ module.exports = class KeyringController extends EventEmitter {
submitPassword(password, cb) {
this.loadKey(password)
.then((key) => {
- cb(null, [])
+ cb(null, this.getState())
})
.catch((err) => {
cb(err)