fix password confirmation when restoring account

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2020-01-14 12:10:01 +01:00
parent 2c56d70929
commit b0727ff1a9
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 3 additions and 1 deletions

View File

@ -256,7 +256,9 @@
{:events [:multiaccounts.recover/enter-password-next-pressed]}
[{:keys [db] :as cofx}]
(fx/merge cofx
{:db (assoc-in db [:intro-wizard :stored-key-code] (get-in db [:intro-wizard :key-code]))}
{:db (-> db
(assoc-in [:intro-wizard :stored-key-code] (get-in db [:intro-wizard :key-code]))
(assoc-in [:intro-wizard :key-code] ""))}
(proceed-to-password-confirm)))
(fx/defn confirm-password-next-button-pressed