Skip to content

Commit

Permalink
fix: reset profiles list translate-x while unmounting
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed Mar 19, 2024
1 parent 8fb42d2 commit 7463414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/status_im/contexts/profile/profiles/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7463414

Please sign in to comment.