avoid closing/opening NFC dialog in rapid sequence
Signed-off-by: Michele Balistreri <michele@bitgamma.com>
This commit is contained in:
parent
f3533c5f99
commit
15d671275f
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue