From 75d0b2a5d51ed61d82268a10a1faa2b821b1bfd9 Mon Sep 17 00:00:00 2001 From: Dmitry Novotochinov Date: Fri, 27 Sep 2019 15:40:27 +0300 Subject: [PATCH] fix 2 keycard setups --- src/status_im/hardwallet/core.cljs | 4 ++++ src/status_im/init/core.cljs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/status_im/hardwallet/core.cljs b/src/status_im/hardwallet/core.cljs index 9ff3586eade6..884d18e512e6 100644 --- a/src/status_im/hardwallet/core.cljs +++ b/src/status_im/hardwallet/core.cljs @@ -676,6 +676,10 @@ flow (get-in db [:hardwallet :flow])] (fx/merge cofx {:db (-> db + (update :hardwallet + dissoc :secrets :card-state :multiaccount-wallet-address + :multiaccount-whisper-public-key + :application-info) (assoc-in [:hardwallet :setup-step] :begin) (assoc-in [:hardwallet :on-card-connected] :hardwallet/get-application-info) (assoc-in [:hardwallet :on-card-read] :hardwallet/check-card-state) diff --git a/src/status_im/init/core.cljs b/src/status_im/init/core.cljs index 3b924ad33ef5..d4a53170dc4c 100644 --- a/src/status_im/init/core.cljs +++ b/src/status_im/init/core.cljs @@ -28,7 +28,7 @@ :initial-props initial-props :desktop/desktop (merge desktop (:desktop/desktop app-db)) :network/type type - :hardwallet hardwallet + :hardwallet (dissoc hardwallet :secrets) :device-UUID device-UUID :supported-biometric-auth supported-biometric-auth :view-id view-id