fixes #368
This commit is contained in:
parent
8a0fa2acf8
commit
2c72274025
|
@ -63,12 +63,12 @@
|
||||||
|
|
||||||
(register-handler :initialize-sync-listener
|
(register-handler :initialize-sync-listener
|
||||||
(fn [{:keys [web3 sync-listener] :as db} _]
|
(fn [{:keys [web3 sync-listener] :as db} _]
|
||||||
(when sync-listener
|
(if-not sync-listener
|
||||||
(.stopWatching sync-listener))
|
|
||||||
(->> (.isSyncing (.-eth web3)
|
(->> (.isSyncing (.-eth web3)
|
||||||
(fn [error sync]
|
(fn [error sync]
|
||||||
(dispatch [:update-sync-state error sync])))
|
(dispatch [:update-sync-state error sync])))
|
||||||
(assoc db :sync-listener))))
|
(assoc db :sync-listener))
|
||||||
|
db)))
|
||||||
|
|
||||||
(register-handler :incoming-message
|
(register-handler :incoming-message
|
||||||
(u/side-effect!
|
(u/side-effect!
|
||||||
|
|
Loading…
Reference in New Issue