From afa35379b2a25086ccb90a1968ffb2646d01ab82 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 4 Feb 2021 14:46:11 +0100 Subject: [PATCH] :bug: Fix onboarding after logging with token. --- frontend/src/app/main/data/auth.cljs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/data/auth.cljs b/frontend/src/app/main/data/auth.cljs index 0e733c9b8c..5ef0ab07ba 100644 --- a/frontend/src/app/main/data/auth.cljs +++ b/frontend/src/app/main/data/auth.cljs @@ -36,7 +36,7 @@ (let [team-id (:default-team-id profile)] (rx/merge (rx/of (du/profile-fetched profile) - (rt/nav :dashboard-projects {:team-id team-id})) + (rt/nav' :dashboard-projects {:team-id team-id})) (when-not (get-in profile [:props :onboarding-viewed]) (->> (rx/of (modal/show {:type :onboarding})) (rx/delay 1000)))))))) @@ -77,9 +77,7 @@ ptk/WatchEvent (watch [this state s] - (let [team-id (:default-team-id profile)] - (rx/of (du/profile-fetched profile) - (rt/nav' :dashboard-projects {:team-id team-id})))))) + (rx/of (logged-in profile))))) (defn login-with-ldap [{:keys [email password] :as data}]