0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -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 [] (letfn [(get-redirect-events []
(let [team-id (get-current-team-id profile) (let [team-id (get-current-team-id profile)
welcome-file-id (dm/get-in profile [:props :welcome-file-id]) welcome-file-id (dm/get-in profile [:props :welcome-file-id])
redirect-href (::login-redirect storage/session)] redirect-href (:login-redirect storage/session)]
(cond (cond
(some? redirect-href) (some? redirect-href)
(binding [storage/*sync* true] (binding [storage/*sync* true]
(swap! storage/session dissoc ::login-redirect) (swap! storage/session dissoc :login-redirect)
(rx/of (rt/nav-raw :href redirect-href))) (rx/of (rt/nav-raw :href redirect-href)))
(some? welcome-file-id) (some? welcome-file-id)