mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-31 19:55:28 +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))
|
||||
|
||||
(defn init! []
|
||||
(commiteth.routes/setup-nav!)
|
||||
(rf/dispatch-sync [:initialize-db])
|
||||
(rf/dispatch [:initialize-web3])
|
||||
(when config/debug?
|
||||
(enable-re-frisk!))
|
||||
(load-interceptors!)
|
||||
(commiteth.routes/setup-nav!)
|
||||
(load-data true)
|
||||
(.addEventListener js/window "click" #(rf/dispatch [:clear-flash-message]))
|
||||
(on-js-load))
|
||||
|
@ -12,7 +12,8 @@
|
||||
(reg-sub
|
||||
:route
|
||||
(fn [db _]
|
||||
(:route db)))
|
||||
(or (:route db)
|
||||
{:route-id :bounties})))
|
||||
|
||||
(reg-sub
|
||||
:user
|
||||
|
Loading…
x
Reference in New Issue
Block a user