Skip to content

Commit

Permalink
fix: prevent community qr-code from glitching when closing modal
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom authored and mariia-skrypnyk committed Apr 30, 2024
1 parent c0c6d1f commit 15abe80
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15abe80

Please sign in to comment.