mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 18:54:52 +00:00
[#13981] Fix generate new key
This commit is contained in:
parent
b71853c92a
commit
3e8ac1939e
@ -126,12 +126,15 @@
|
|||||||
(fx/defn intro-wizard
|
(fx/defn intro-wizard
|
||||||
{:events [:multiaccounts.create.ui/intro-wizard]}
|
{:events [:multiaccounts.create.ui/intro-wizard]}
|
||||||
[{:keys [db] :as cofx}]
|
[{:keys [db] :as cofx}]
|
||||||
(fx/merge cofx
|
(let [accs (get db :multiaccounts/multiaccounts)]
|
||||||
{:db (-> db
|
(fx/merge cofx
|
||||||
(update :keycard dissoc :flow)
|
{:db (-> db
|
||||||
(dissoc :restored-account?))}
|
(update :keycard dissoc :flow)
|
||||||
(multiaccounts.create/prepare-intro-wizard)
|
(dissoc :restored-account?))}
|
||||||
(navigation/set-stack-root :onboarding [:get-your-keys])))
|
(multiaccounts.create/prepare-intro-wizard)
|
||||||
|
(if (pos? (count accs))
|
||||||
|
(navigation/navigate-to-cofx :get-your-keys nil)
|
||||||
|
(navigation/set-stack-root :onboarding [:get-your-keys])))))
|
||||||
|
|
||||||
(fx/defn recovery-no-key
|
(fx/defn recovery-no-key
|
||||||
{:events [:keycard.recovery.no-key.ui/generate-key-pressed]}
|
{:events [:keycard.recovery.no-key.ui/generate-key-pressed]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user