0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

Fix wrong logout event implementation.

This commit is contained in:
Andrey Antukh 2016-05-16 13:27:21 +03:00
parent c8d48d4667
commit ef47a0aaad
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -70,15 +70,12 @@
(defrecord Logout []
rs/UpdateEvent
(-apply-update [_ state]
(swap! storage dissoc :uxbox/auth)
(merge state (dissoc (st/get-initial-state) :route)))
rs/WatchEvent
(-apply-watch [_ state s]
(rx/of (r/navigate :auth/login)))
rs/EffectEvent
(-apply-effect [this state]
(swap! storage dissoc :uxbox/auth)))
(rx/of (r/navigate :auth/login))))
(defn logout
[]