[#11411] App is crashed on account creation after navigating to access key and back

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
andrey 2020-11-16 15:04:51 +01:00 committed by Andrea Maria Piana
parent 28d3cf03d9
commit 9f7ad853f0
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 3 additions and 4 deletions

View File

@ -116,10 +116,9 @@
[{:keys [db] :as cofx}] [{:keys [db] :as cofx}]
(let [step (get-in db [:intro-wizard :step])] (let [step (get-in db [:intro-wizard :step])]
(fx/merge cofx (fx/merge cofx
(when-not (= :generate-key step) (if (or (= step :enter-phrase) (= :generate-key step))
{:db (assoc-in db [:intro-wizard :step] (decrement-step step))}) #(prepare-intro-wizard %)
(when (= :generate-key-step) {:db (assoc-in db [:intro-wizard :step] (decrement-step step))}))))
{:db (dissoc db :intro-wizard)}))))
(fx/defn intro-step-back (fx/defn intro-step-back
{:events [:intro-wizard/navigate-back]} {:events [:intro-wizard/navigate-back]}