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