[#12270] App crashes if first open the "Enter your seed phrase" screen, then go back, generate a new key and create a password

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-07-05 12:16:29 +02:00
parent af9461da74
commit 440e6d2047
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,9 @@
(fx/defn generate-and-derive-addresses (fx/defn generate-and-derive-addresses
{:events [:generate-and-derive-addresses]} {:events [:generate-and-derive-addresses]}
[{:keys [db]}] [{:keys [db]}]
{:db (assoc-in db [:intro-wizard :processing?] true) {:db (-> db
(update :intro-wizard #(-> % (assoc :processing? true) (dissoc :recovering?)))
(dissoc :recovered-account?))
:multiaccount-generate-and-derive-addresses nil}) :multiaccount-generate-and-derive-addresses nil})
(fx/defn prepare-intro-wizard (fx/defn prepare-intro-wizard