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:
parent
946677f5b3
commit
d4fb85bb02
1 changed files with 6 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue