[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]]
|
(fn [{{:keys [view-id] :as db} :db} [_ error address]]
|
||||||
(if (nil? error)
|
(if (nil? error)
|
||||||
{:db (cond-> (dissoc db :accounts/login)
|
{:db (cond-> (dissoc db :accounts/login)
|
||||||
(= view-id :create-account)
|
(= view-id :create-account)
|
||||||
(assoc-in [:accounts/create :step] :enter-name))
|
(assoc-in [:accounts/create :step] :enter-name))
|
||||||
:dispatch-n (concat
|
:dispatch-n (concat
|
||||||
[[:stop-debugging]
|
[[:stop-debugging]
|
||||||
[:initialize-account address]]
|
[:initialize-account address
|
||||||
(when (not= view-id :create-account)
|
(when (not= view-id :create-account)
|
||||||
[[:navigate-to-clean :home]]))}
|
[[:navigate-to-clean :home]])]])}
|
||||||
(log/debug "Error changing acount: " error))))
|
(log/debug "Error changing acount: " error))))
|
||||||
|
|
Loading…
Reference in New Issue