From 7463414017d6a2e90a5a7d169ae1a1c1e7f8a879 Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Mon, 18 Mar 2024 13:05:44 +0000 Subject: [PATCH] fix: reset profiles list translate-x while unmounting --- src/status_im/contexts/profile/profiles/view.cljs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/status_im/contexts/profile/profiles/view.cljs b/src/status_im/contexts/profile/profiles/view.cljs index 5b1046a0f09..01e58fccb35 100644 --- a/src/status_im/contexts/profile/profiles/view.cljs +++ b/src/status_im/contexts/profile/profiles/view.cljs @@ -140,6 +140,9 @@ (reset! push-animation-fn-atom #(push-animation translate-x)) (reset! pop-animation-fn-atom #(pop-animation translate-x)) (fn [] + (when-let [pop-animation-fn @pop-animation-fn-atom] + (when (not= translate-x 0) + (pop-animation-fn))) (reset! push-animation-fn-atom nil) (reset! pop-animation-fn-atom nil)))) [reanimated/view