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 committed Apr 29, 2024
1 parent c05b8ec commit b08666d
Showing 1 changed file with 4 additions and 1 deletion.
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 b08666d

Please sign in to comment.