This commit is contained in:
Roman Volosovskyi 2016-11-30 19:44:39 +02:00
parent 746ec2d1fe
commit d2dab549f8
2 changed files with 4 additions and 2 deletions

View File

@ -43,9 +43,10 @@
(assoc-in db [:animations k] v)))
(register-handler :initialize-db
(fn [{:keys [status-module-initialized? network]} _]
(fn [{:keys [status-module-initialized? network-status network]} _]
(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?
(assoc :status-module-initialized? true)

View File

@ -110,6 +110,7 @@
(defn init []
(dispatch-sync [:reset-app])
(dispatch [:listen-to-network-status!])
(dispatch [:initialize-crypt])
(dispatch [:initialize-geth])
(dispatch [:load-user-phone-number])