From 409f81a6f5f3d766ed80fe740c22b4b8c79d4ce5 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Tue, 6 Sep 2022 03:53:12 +0530 Subject: [PATCH] fix ios keycard recovery pin error (#13924) --- src/status_im/keycard/common.cljs | 4 +--- src/status_im/ui/screens/keycard/pin/views.cljs | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/status_im/keycard/common.cljs b/src/status_im/keycard/common.cljs index 989d9b8eca..fa4e41ad6a 100644 --- a/src/status_im/keycard/common.cljs +++ b/src/status_im/keycard/common.cljs @@ -403,9 +403,7 @@ :import-multiaccount [] :error-label :t/pin-mismatch))} (hide-connection-sheet) - (when (zero? pin-retries-count) (frozen-keycard-popup)) - (when (= flow :import) - (navigation/navigate-to-cofx :keycard-recovery-pin nil))) + (when (zero? pin-retries-count) (frozen-keycard-popup))) (show-wrong-keycard-alert))))) (fx/defn factory-reset diff --git a/src/status_im/ui/screens/keycard/pin/views.cljs b/src/status_im/ui/screens/keycard/pin/views.cljs index fba8c758f4..60d5a26aa4 100644 --- a/src/status_im/ui/screens/keycard/pin/views.cljs +++ b/src/status_im/ui/screens/keycard/pin/views.cljs @@ -152,8 +152,8 @@ [{:keys [retry-counter]}] (let [error-y-translation (animation/create-value -8) error-opacity (animation/create-value 0) - retries-y-translation (animation/create-value (if retry-counter 8 0)) - retries-opacity (animation/create-value (if retry-counter 0 1)) + retries-y-translation (animation/create-value (if retry-counter 0 -8)) + retries-opacity (animation/create-value (if retry-counter 1 0)) !error? (reagent/atom false)] (reagent/create-class {:component-did-update