avoid closing/opening NFC dialog in rapid sequence

Signed-off-by: Michele Balistreri <michele@bitgamma.com>
This commit is contained in:
Michele Balistreri 2021-12-16 11:44:11 +03:00
parent f3533c5f99
commit 15d671275f
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
2 changed files with 5 additions and 4 deletions

View File

@ -525,14 +525,14 @@
(fx/merge cofx (fx/merge cofx
{:db (assoc-in db [:keycard :card-state] card-state)} {:db (assoc-in db [:keycard :card-state] card-state)}
(set-setup-step card-state) (set-setup-step card-state)
(common/hide-connection-sheet)
(when paired? (when paired?
(load-pairing)) (load-pairing))
(when (and flow (if (and flow
(= card-state :init)) (= card-state :init))
(proceed-setup-with-initialized-card flow instance-uid paired?)) (proceed-setup-with-initialized-card flow instance-uid paired?)
(common/hide-connection-sheet))
(when (= card-state :pre-init) (when (= card-state :pre-init)
(if (= flow :import) (if (= flow :import)

View File

@ -21,6 +21,7 @@
(assoc-in [:keycard :setup-step] :recovery-phrase) (assoc-in [:keycard :setup-step] :recovery-phrase)
(assoc-in [:keycard :secrets :mnemonic] mnemonic))} (assoc-in [:keycard :secrets :mnemonic] mnemonic))}
(common/clear-on-card-connected) (common/clear-on-card-connected)
(common/hide-connection-sheet)
(navigation/navigate-replace :keycard-onboarding-recovery-phrase nil)))) (navigation/navigate-replace :keycard-onboarding-recovery-phrase nil))))
(fx/defn load-loading-keys-screen (fx/defn load-loading-keys-screen