Skip to content

Commit

Permalink
[#3414]
Browse files Browse the repository at this point in the history
  • Loading branch information
flexsurfer committed May 28, 2018
1 parent 686d648 commit 4c077d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/status_im/ui/screens/wallet/choose_recipient/views.cljs
Expand Up @@ -44,9 +44,9 @@
(int (* 2 (/ (min height width) 3))))

(defview choose-recipient []
(letsubs [dimensions (react/get-dimensions "window")
camera-flashlight [:wallet.send/camera-flashlight]
view [:get :view-id]]
(letsubs [read-once? (atom false)
dimensions (react/get-dimensions "window")
camera-flashlight [:wallet.send/camera-flashlight]]
[react/view {:style styles/qr-code}
[status-bar/status-bar {:type :transparent}]
[toolbar-view camera-flashlight]
Expand All @@ -61,7 +61,9 @@
:aspect :fill
:captureAudio false
:torchMode (camera/set-torch camera-flashlight)
:onBarCodeRead #(re-frame/dispatch [:wallet/fill-request-from-url (camera/get-qr-code-data %) nil])}]]
:onBarCodeRead #(when-not @read-once?
(reset! read-once? true)
(re-frame/dispatch [:wallet/fill-request-from-url (camera/get-qr-code-data %) nil]))}]]
[viewfinder dimensions (size dimensions)]]
[bottom-buttons/bottom-button
[button/button {:disabled? false
Expand Down

0 comments on commit 4c077d7

Please sign in to comment.