mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-07 23:25:22 +00:00
routing - ensure initial bounties route is always set
This commit is contained in:
parent
ec61198627
commit
d97a22d9c1
@ -260,12 +260,12 @@
|
|||||||
(mount-components))
|
(mount-components))
|
||||||
|
|
||||||
(defn init! []
|
(defn init! []
|
||||||
|
(commiteth.routes/setup-nav!)
|
||||||
(rf/dispatch-sync [:initialize-db])
|
(rf/dispatch-sync [:initialize-db])
|
||||||
(rf/dispatch [:initialize-web3])
|
(rf/dispatch [:initialize-web3])
|
||||||
(when config/debug?
|
(when config/debug?
|
||||||
(enable-re-frisk!))
|
(enable-re-frisk!))
|
||||||
(load-interceptors!)
|
(load-interceptors!)
|
||||||
(commiteth.routes/setup-nav!)
|
|
||||||
(load-data true)
|
(load-data true)
|
||||||
(.addEventListener js/window "click" #(rf/dispatch [:clear-flash-message]))
|
(.addEventListener js/window "click" #(rf/dispatch [:clear-flash-message]))
|
||||||
(on-js-load))
|
(on-js-load))
|
||||||
|
@ -12,7 +12,8 @@
|
|||||||
(reg-sub
|
(reg-sub
|
||||||
:route
|
:route
|
||||||
(fn [db _]
|
(fn [db _]
|
||||||
(:route db)))
|
(or (:route db)
|
||||||
|
{:route-id :bounties})))
|
||||||
|
|
||||||
(reg-sub
|
(reg-sub
|
||||||
:user
|
:user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user