should fix

This commit is contained in:
2023-09-01 09:17:47 -07:00
parent 0c23ccc811
commit 8e47904e6e

View File

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