[#13981] Fix generate new key

This commit is contained in:
Roman Volosovskyi 2022-09-13 11:38:59 +02:00
parent b71853c92a
commit 3e8ac1939e
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE

View File

@ -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]}