From b0727ff1a9baa387c4d6c4fe95e2a72fbd10f17e Mon Sep 17 00:00:00 2001 From: yenda Date: Tue, 14 Jan 2020 12:10:01 +0100 Subject: [PATCH] fix password confirmation when restoring account Signed-off-by: yenda --- src/status_im/multiaccounts/recover/core.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/multiaccounts/recover/core.cljs b/src/status_im/multiaccounts/recover/core.cljs index 8c3827d415..2f5aacd14a 100644 --- a/src/status_im/multiaccounts/recover/core.cljs +++ b/src/status_im/multiaccounts/recover/core.cljs @@ -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