From 9317feeb0b7c17f820dc23cb15bbe441f1dec843 Mon Sep 17 00:00:00 2001 From: woudini Date: Mon, 20 Feb 2017 11:13:22 -0500 Subject: [PATCH] fix(Login): call callback and didFetchWallet for if sharedKey is known --- src/wallet.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wallet.js b/src/wallet.js index 3a93d6105..95cf9ce61 100644 --- a/src/wallet.js +++ b/src/wallet.js @@ -232,7 +232,10 @@ MyWallet.login = function (guid, password, credentials, callbacks) { } else if (credentials.sharedKey) { // If the shared key is known, 2FA and browser verification are skipped. // No session is needed in that case. - return WalletNetwork.fetchWalletWithSharedKey(guid, credentials.sharedKey).then(initializeWallet); + return WalletNetwork.fetchWalletWithSharedKey(guid, credentials.sharedKey) + .then(cb('didFetch')) + .then(MyWallet.didFetchWallet) + .then(initializeWallet); } else { // If a new browser is used, wait for user to click verification link. let authorizationRequired = (token) => () => {