fix #514
This commit is contained in:
parent
746ec2d1fe
commit
d2dab549f8
|
@ -43,9 +43,10 @@
|
||||||
(assoc-in db [:animations k] v)))
|
(assoc-in db [:animations k] v)))
|
||||||
|
|
||||||
(register-handler :initialize-db
|
(register-handler :initialize-db
|
||||||
(fn [{:keys [status-module-initialized? network]} _]
|
(fn [{:keys [status-module-initialized? network-status network]} _]
|
||||||
(data-store/init)
|
(data-store/init)
|
||||||
(cond-> (assoc app-db :current-account-id nil)
|
(cond-> (assoc app-db :current-account-id nil
|
||||||
|
:network-status network-status)
|
||||||
|
|
||||||
status-module-initialized?
|
status-module-initialized?
|
||||||
(assoc :status-module-initialized? true)
|
(assoc :status-module-initialized? true)
|
||||||
|
|
|
@ -110,6 +110,7 @@
|
||||||
|
|
||||||
(defn init []
|
(defn init []
|
||||||
(dispatch-sync [:reset-app])
|
(dispatch-sync [:reset-app])
|
||||||
|
(dispatch [:listen-to-network-status!])
|
||||||
(dispatch [:initialize-crypt])
|
(dispatch [:initialize-crypt])
|
||||||
(dispatch [:initialize-geth])
|
(dispatch [:initialize-geth])
|
||||||
(dispatch [:load-user-phone-number])
|
(dispatch [:load-user-phone-number])
|
||||||
|
|
Loading…
Reference in New Issue