0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix problem with language update

This commit is contained in:
alonso.torres 2024-03-13 09:44:51 +01:00
parent 946677f5b3
commit d4fb85bb02

View file

@ -24,12 +24,16 @@
(s/def ::options-form
(s/keys :opt-un [::lang ::theme]))
(defn- on-success
[profile]
(st/emit! (msg/success (tr "notifications.profile-saved"))
(du/profile-fetched profile)))
(defn- on-submit
[form _event]
(let [data (:clean-data @form)]
(st/emit! (du/update-profile data)
(du/persist-profile)
(msg/success (tr "notifications.profile-saved")))))
(du/persist-profile {:on-success on-success}))))
(mf/defc options-form
{::mf/wrap-props false}