Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
  • Loading branch information
smohamedjavid committed May 30, 2023
1 parent e458525 commit 8af6402
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/status_im2/contexts/syncing/scan_sync_code/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@
:text (i18n/label
:t/camera-permission-denied)}])}]))]
(fn []
(let [view-id (rf/sub [:view-id])
camera-ref (atom nil)
(let [camera-ref (atom nil)
read-qr-once? (atom false)
user-in-syncing-progress-screen? (= view-id :syncing-progress)
;; The below check is to prevent scanning of any QR code
;; when the user is in syncing progress screen
user-in-syncing-progress-screen? (= (rf/sub [:view-id]) :syncing-progress)
on-read-code (fn [data]
(when (and (not @read-qr-once?)
(not user-in-syncing-progress-screen?))
Expand Down

0 comments on commit 8af6402

Please sign in to comment.