diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-03-08 23:29:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 23:29:29 +0800 |
commit | cbb65cc4930ff1571a84ac526a29a76010d6003f (patch) | |
tree | 091c801e627b37543a9a87c337d597a6bf1f1f1b /ui/app/reducers | |
parent | f4e5dd37b172e954e40cd4683a92544393cb2983 (diff) | |
download | tangerine-wallet-browser-cbb65cc4930ff1571a84ac526a29a76010d6003f.tar tangerine-wallet-browser-cbb65cc4930ff1571a84ac526a29a76010d6003f.tar.gz tangerine-wallet-browser-cbb65cc4930ff1571a84ac526a29a76010d6003f.tar.bz2 tangerine-wallet-browser-cbb65cc4930ff1571a84ac526a29a76010d6003f.tar.lz tangerine-wallet-browser-cbb65cc4930ff1571a84ac526a29a76010d6003f.tar.xz tangerine-wallet-browser-cbb65cc4930ff1571a84ac526a29a76010d6003f.tar.zst tangerine-wallet-browser-cbb65cc4930ff1571a84ac526a29a76010d6003f.zip |
Fix flashing to Log in screen after logging in or restoring from seed phrase (#3466)
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 14 | ||||
-rw-r--r-- | ui/app/reducers/metamask.js | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 4dda839a2..74a0f9299 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -138,14 +138,18 @@ function reduceApp (state, action) { }) case actions.FORGOT_PASSWORD: - return extend(appState, { - currentView: { - name: action.value ? 'restoreVault' : 'accountDetail', - }, - transForward: false, + const newState = extend(appState, { forgottenPassword: action.value, }) + if (action.value) { + newState.currentView = { + name: 'restoreVault', + } + } + + return newState + case actions.SHOW_INIT_MENU: return extend(appState, { currentView: defaultView, diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index cddcd0c1f..029d830ec 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -130,8 +130,6 @@ function reduceMetamask (state, action) { case actions.SHOW_NEW_VAULT_SEED: return extend(metamaskState, { - isUnlocked: true, - isInitialized: false, isRevealingSeedWords: true, seedWords: action.value, }) |