Fix recovery with seed after visiting keycard recovery
This commit is contained in:
parent
4d3c622947
commit
15d9e7be86
|
@ -14,7 +14,8 @@
|
||||||
[status-im.utils.security :as security]
|
[status-im.utils.security :as security]
|
||||||
[status-im.utils.types :as types]
|
[status-im.utils.types :as types]
|
||||||
[status-im.utils.platform :as platform]
|
[status-im.utils.platform :as platform]
|
||||||
[status-im.utils.utils :as utils]))
|
[status-im.utils.utils :as utils]
|
||||||
|
[status-im.ui.components.bottom-sheet.core :as bottom-sheet]))
|
||||||
|
|
||||||
(defn existing-account?
|
(defn existing-account?
|
||||||
[root-key multiaccounts]
|
[root-key multiaccounts]
|
||||||
|
@ -139,18 +140,21 @@
|
||||||
(fx/defn enter-phrase-pressed
|
(fx/defn enter-phrase-pressed
|
||||||
{:events [::enter-phrase-pressed]}
|
{:events [::enter-phrase-pressed]}
|
||||||
[{:keys [db] :as cofx}]
|
[{:keys [db] :as cofx}]
|
||||||
(fx/merge cofx
|
(fx/merge
|
||||||
{:db (assoc db
|
cofx
|
||||||
:intro-wizard {:step :enter-phrase
|
{:db (-> db
|
||||||
:recovering? true
|
(assoc :intro-wizard
|
||||||
:next-button-disabled? true
|
{:step :enter-phrase
|
||||||
:weak-password? true
|
:recovering? true
|
||||||
:encrypt-with-password? true
|
:next-button-disabled? true
|
||||||
:first-time-setup? false
|
:weak-password? true
|
||||||
:back-action :intro-wizard/navigate-back
|
:encrypt-with-password? true
|
||||||
:forward-action :multiaccounts.recover/enter-phrase-next-pressed})
|
:first-time-setup? false
|
||||||
:dispatch [:bottom-sheet/hide-sheet]}
|
:back-action :intro-wizard/navigate-back
|
||||||
(navigation/navigate-to-cofx :recover-multiaccount-enter-phrase nil)))
|
:forward-action :multiaccounts.recover/enter-phrase-next-pressed})
|
||||||
|
(update :hardwallet dissoc :flow))}
|
||||||
|
(bottom-sheet/hide-bottom-sheet)
|
||||||
|
(navigation/navigate-to-cofx :recover-multiaccount-enter-phrase nil)))
|
||||||
|
|
||||||
(fx/defn proceed-to-import-mnemonic
|
(fx/defn proceed-to-import-mnemonic
|
||||||
{:events [:multiaccounts.recover/enter-phrase-next-pressed]}
|
{:events [:multiaccounts.recover/enter-phrase-next-pressed]}
|
||||||
|
|
Loading…
Reference in New Issue