mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Fix wrong logout event implementation.
This commit is contained in:
parent
c8d48d4667
commit
ef47a0aaad
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
[]
|
||||
|
|
Loading…
Reference in a new issue