Improve ruler scale calculation.

This commit is contained in:
Andrey Antukh 2020-05-12 08:45:41 +02:00
parent 994a1fa144
commit f3e1d35f3d
2 changed files with 21 additions and 6 deletions

View file

@ -36,16 +36,16 @@
profile (:profile storage)
authed? (and (not (nil? profile))
(not= (:id profile) uuid/zero))]
(cond
(and (or (= path "")
(nil? match))
(not authed?))
(st/emit! (rt/nav :login))
(and (= path "") authed?)
(and (nil? match) authed?)
(st/emit! (rt/nav :dashboard-team {:team-id (:default-team-id profile)}))
(nil? match)
(st/emit! (rt/nav :not-found))