From ef47a0aaade5b9661c0d85c84af61572928b3404 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 16 May 2016 13:27:21 +0300 Subject: [PATCH] Fix wrong logout event implementation. --- src/uxbox/data/auth.cljs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/uxbox/data/auth.cljs b/src/uxbox/data/auth.cljs index 81b648138..40a9ca3a1 100644 --- a/src/uxbox/data/auth.cljs +++ b/src/uxbox/data/auth.cljs @@ -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 []