🐛 Fix onboarding after logging with token.

This commit is contained in:
Andrey Antukh 2021-02-04 14:46:11 +01:00
parent 1099e08b7d
commit afa35379b2

View file

@ -36,7 +36,7 @@
(let [team-id (:default-team-id profile)] (let [team-id (:default-team-id profile)]
(rx/merge (rx/merge
(rx/of (du/profile-fetched profile) (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]) (when-not (get-in profile [:props :onboarding-viewed])
(->> (rx/of (modal/show {:type :onboarding})) (->> (rx/of (modal/show {:type :onboarding}))
(rx/delay 1000)))))))) (rx/delay 1000))))))))
@ -77,9 +77,7 @@
ptk/WatchEvent ptk/WatchEvent
(watch [this state s] (watch [this state s]
(let [team-id (:default-team-id profile)] (rx/of (logged-in profile)))))
(rx/of (du/profile-fetched profile)
(rt/nav' :dashboard-projects {:team-id team-id}))))))
(defn login-with-ldap (defn login-with-ldap
[{:keys [email password] :as data}] [{:keys [email password] :as data}]