[fix #3505] Fix account initialization events order
Signed-off-by: Dmitry Novotochinov <trybeee@gmail.com>
This commit is contained in:
parent
ed7705ca7f
commit
1f1ff9cbaf
|
@ -123,11 +123,11 @@
|
|||
(fn [{{:keys [view-id] :as db} :db} [_ error address]]
|
||||
(if (nil? error)
|
||||
{:db (cond-> (dissoc db :accounts/login)
|
||||
(= view-id :create-account)
|
||||
(assoc-in [:accounts/create :step] :enter-name))
|
||||
(= view-id :create-account)
|
||||
(assoc-in [:accounts/create :step] :enter-name))
|
||||
:dispatch-n (concat
|
||||
[[:stop-debugging]
|
||||
[:initialize-account address]]
|
||||
(when (not= view-id :create-account)
|
||||
[[:navigate-to-clean :home]]))}
|
||||
[:initialize-account address
|
||||
(when (not= view-id :create-account)
|
||||
[[:navigate-to-clean :home]])]])}
|
||||
(log/debug "Error changing acount: " error))))
|
||||
|
|
Loading…
Reference in New Issue