From 28d29ed75668554558c66c0dcbcf8be38cfbf645 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Wed, 11 Sep 2024 17:01:01 +0530 Subject: [PATCH] fix issue 2 --- .../contexts/onboarding/syncing/progress/view.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/status_im/contexts/onboarding/syncing/progress/view.cljs b/src/status_im/contexts/onboarding/syncing/progress/view.cljs index 9f8cd4d19689..57966faa2f93 100644 --- a/src/status_im/contexts/onboarding/syncing/progress/view.cljs +++ b/src/status_im/contexts/onboarding/syncing/progress/view.cljs @@ -28,15 +28,16 @@ (defn- navigate-to-enter-seed-phrase [] - (rf/dispatch [:navigate-back-to :screen/onboarding.sync-or-recover-profile]) (debounce/debounce-and-dispatch [:onboarding/navigate-to-sign-in-by-seed-phrase :screen/onboarding.sync-or-recover-profile] 500)) (defn- try-again - [] + [logged-in?] (rf/dispatch [:syncing/clear-states]) - (rf/dispatch [:navigate-back])) + (if logged-in? + (rf/dispatch [:navigate-back]) + (rf/dispatch [:navigate-back-to :screen/onboarding.sync-or-recover-profile]))) (defn try-again-button [profile-color logged-in?] @@ -58,7 +59,7 @@ :customization-color profile-color :container-style {:flex 1} :size 40 - :on-press try-again}}]) + :on-press #(try-again logged-in?)}}]) (defn- illustration [pairing-progress?]