From 772efa90d4346b652e37130dccf34659dafa14c3 Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Tue, 19 Mar 2024 17:41:43 +0000 Subject: [PATCH] fix: reset profiles list translate-x while unmounting (#19315) --- 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 5b1046a0f0..01e58fccb3 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