From 15abe801e104714f614ddcb67fcbfa675bb35ba2 Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Mon, 29 Apr 2024 16:23:01 +0100 Subject: [PATCH] fix: prevent community qr-code from glitching when closing modal --- .../contexts/communities/actions/share_community/view.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/status_im/contexts/communities/actions/share_community/view.cljs b/src/status_im/contexts/communities/actions/share_community/view.cljs index 198a0b07d338..3d1a4e01129e 100644 --- a/src/status_im/contexts/communities/actions/share_community/view.cljs +++ b/src/status_im/contexts/communities/actions/share_community/view.cljs @@ -18,7 +18,10 @@ (defn view [] - (let [{:keys [url community-id]} (rf/sub [:get-screen-params]) + (let [params (rf/sub [:get-screen-params]) + ;; NOTE(seanstrom): We need to store these screen params for when the modal closes + ;; because the screen params will be cleared. + {:keys [url community-id]} @(rn/use-ref-atom params) window-width (rf/sub [:dimensions/window-width]) {thumbnail-uri :logo color :color