routing - ensure initial bounties route is always set

This commit is contained in:
Martin Klepsch 2018-04-17 14:01:51 +02:00 committed by Tetiana Churikova
parent ec61198627
commit d97a22d9c1
2 changed files with 3 additions and 2 deletions

View File

@ -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))

View File

@ -12,7 +12,8 @@
(reg-sub
:route
(fn [db _]
(:route db)))
(or (:route db)
{:route-id :bounties})))
(reg-sub
:user