0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Properly redirect bad-gateway errors on login.

This commit is contained in:
Andrey Antukh 2021-03-29 17:57:07 +02:00
parent 87aa3fbfe8
commit 2500486186

View file

@ -77,11 +77,7 @@
ptk/WatchEvent
(watch [_ state s]
(->> (rp/query! :profile)
(rx/map profile-fetched)
(rx/catch (fn [error]
(if (= (:type error) :not-found)
(rx/of (rt/nav :auth-login))
(rx/empty))))))))
(rx/map profile-fetched)))))
;; --- Update Profile