Merge pull request #4636 from penpot/niwinz-bugfix-2

 Minor changes
This commit is contained in:
Alejandro 2024-05-28 08:07:46 +02:00 committed by GitHub
commit c918e06859
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View file

@ -343,9 +343,9 @@
(watch [_ state _]
(let [on-success (:on-success opts identity)
on-error (:on-error opts rx/throw)
profile (:profile state)]
(->> (rp/cmd! :update-profile (dissoc profile :props))
profile (:profile state)
params (select-keys profile [:fullname :lang :theme])]
(->> (rp/cmd! :update-profile params)
(rx/tap on-success)
(rx/catch on-error))))))