0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00

🐛 Fix session storage entry name

This commit is contained in:
Pablo Alba 2024-09-23 12:15:49 +02:00
parent 19a613e90c
commit 03ebeb0657

View file

@ -172,12 +172,12 @@
(letfn [(get-redirect-events []
(let [team-id (get-current-team-id profile)
welcome-file-id (dm/get-in profile [:props :welcome-file-id])
redirect-href (::login-redirect storage/session)]
redirect-href (:login-redirect storage/session)]
(cond
(some? redirect-href)
(binding [storage/*sync* true]
(swap! storage/session dissoc ::login-redirect)
(swap! storage/session dissoc :login-redirect)
(rx/of (rt/nav-raw :href redirect-href)))
(some? welcome-file-id)