should fix
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
(let [handler (:handler (bidi/match-route routes/routes (.. js/window -location -pathname)))
|
(let [handler (:handler (bidi/match-route routes/routes (.. js/window -location -pathname)))
|
||||||
last-client-id (.getItem js/localStorage "last-client-id")
|
last-client-id (.getItem js/localStorage "last-client-id")
|
||||||
last-selected-clients (edn/read-string (.getItem js/localStorage "last-selected-clients"))
|
last-selected-clients (edn/read-string (.getItem js/localStorage "last-selected-clients"))
|
||||||
jwt-data (jwt->data token)
|
jwt-data (some-> token jwt->data)
|
||||||
selected-client-assignment (cond (and token
|
selected-client-assignment (cond (and token
|
||||||
(= "admin" (get jwt-data "user/role"))
|
(= "admin" (get jwt-data "user/role"))
|
||||||
(not last-selected-clients))
|
(not last-selected-clients))
|
||||||
|
|||||||
Reference in New Issue
Block a user