0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🐛 Fix logged in redirect

This commit is contained in:
Alejandro Alonso 2024-09-23 10:30:31 +02:00
parent a1fc785771
commit 7fe95f218b

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 @s/session)]
redirect-href (::login-redirect storage/session)]
(cond
(some? redirect-href)
(binding [s/*sync* true]
(swap! s/session dissoc :login-redirect)
(binding [storage/*sync* true]
(swap! storage/session dissoc ::login-redirect)
(rx/of (rt/nav-raw :href redirect-href)))
(some? welcome-file-id)