From 144c754a7a6a98288233b4cde21c05cc78a5a403 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Wed, 29 May 2024 16:03:23 +0530 Subject: [PATCH] fix empty screen when opening I'm new to Status screen after closing Sign in screen (#20215) --- src/status_im/contexts/onboarding/intro/view.cljs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/status_im/contexts/onboarding/intro/view.cljs b/src/status_im/contexts/onboarding/intro/view.cljs index d30ba4e77e..ac651df9c9 100644 --- a/src/status_im/contexts/onboarding/intro/view.cljs +++ b/src/status_im/contexts/onboarding/intro/view.cljs @@ -8,7 +8,8 @@ [status-im.contexts.onboarding.intro.style :as style] [status-im.contexts.syncing.scan-sync-code.view :as scan-sync-code] [utils.debounce :as debounce] - [utils.i18n :as i18n])) + [utils.i18n :as i18n] + [utils.re-frame :as rf])) (defn view [] @@ -19,19 +20,16 @@ (reset! scan-sync-code/dismiss-animations reset-top-animation-fn)) :animations-duration constants/onboarding-modal-animation-duration :animations-delay constants/onboarding-modal-animation-delay - :top-card {:on-press #(debounce/throttle-and-dispatch - [:open-modal - :screen/onboarding.sign-in-intro] - 2000) + :top-card {:on-press #(rf/dispatch [:open-modal + :screen/onboarding.sign-in-intro]) :heading (i18n/label :t/sign-in) :animated-heading (i18n/label :t/sign-in-by-syncing) :accessibility-label :already-use-status-button} :bottom-card {:on-press (fn [] (when-let [blur-show-fn @overlay/blur-show-fn-atom] (blur-show-fn)) - (debounce/throttle-and-dispatch - [:open-modal :screen/onboarding.new-to-status] - 1000)) + (rf/dispatch + [:open-modal :screen/onboarding.new-to-status])) :heading (i18n/label :t/new-to-status) :accessibility-label :new-to-status-button}} [quo/text