Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Oct 25, 2023
1 parent 52f03df commit 960033c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/status_im2/contexts/quo_preview/share/share_qr_code.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@
(defn- set-qr-data-based-on-type
[_ state-atom {old-type :type :as _old-state} {new-type :type :as _new-state}]
(when (not= old-type new-type)
(swap! state-atom assoc :qr-data (if (= new-type :profile)
profile-link
wallet-address))))
(swap! state-atom assoc
:qr-data
(if (= new-type :profile)
profile-link
wallet-address))))

(defn view
[]
Expand All @@ -94,7 +96,7 @@
:on-multichain-press #(js/alert (str "Tab " % " pressed"))
:networks (take 2 possible-networks)
:on-settings-press #(js/alert "Settings pressed")})
_ (add-watch state :change set-qr-data-based-on-type)]
_ (add-watch state :change set-qr-data-based-on-type)]
(fn []
(let [qr-url (if (= (:type @state) :wallet-multichain)
(as-> (:networks @state) $
Expand Down

0 comments on commit 960033c

Please sign in to comment.