0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 03:51:21 -05:00

💄 Cosmetic changes on auth data events.

This commit is contained in:
Andrey Antukh 2019-12-18 23:08:42 +01:00
parent 5bad64a497
commit b7d4908e90

View file

@ -38,10 +38,6 @@
(rx/of du/fetch-profile
(rt/navigate :dashboard-projects)))))
(defn logged-in?
[v]
(= (ptk/type v) ::logged-in))
;; --- Login
(s/def ::login-params
@ -50,7 +46,7 @@
(defn login
[{:keys [username password] :as data}]
(s/assert ::login-params data)
(reify
(ptk/reify ::login
ptk/UpdateEvent
(update [_ state]
(merge state (dissoc initial-state :route :router)))