From bda73867471cf2bb8a68b1cc27c9f94b92d9a58b Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 8 Jul 2020 14:48:10 +0300 Subject: [PATCH] [#10784] Fix kk multiacc creation after closing app --- src/status_im/hardwallet/common.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/status_im/hardwallet/common.cljs b/src/status_im/hardwallet/common.cljs index a4be4d0261..ef65667cfa 100644 --- a/src/status_im/hardwallet/common.cljs +++ b/src/status_im/hardwallet/common.cljs @@ -373,9 +373,11 @@ (fx/defn get-application-info {:events [:hardwallet/get-application-info]} [{:keys [db]} pairing on-card-read] - (let [key-uid (get-in - db [:hardwallet :application-info :key-uid] - (get-in db [:multiaccounts/login :key-uid])) + (let [key-uid + (when-not (:intro-wizard db) + (get-in + db [:hardwallet :application-info :key-uid] + (get-in db [:multiaccounts/login :key-uid]))) pairing' (or pairing (some->> key-uid (get-pairing db)))] (log/debug "[hardwallet] get-application-info" "pairing" pairing')