mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05:00
🐛 Fix invalid error is displayed when changing the password
This commit is contained in:
parent
b2ad78d947
commit
44b66352ab
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
(defn- on-error
|
||||
[form error]
|
||||
(case (:code error)
|
||||
(case (:code (ex-data error))
|
||||
:old-password-not-match
|
||||
(swap! form assoc-in [:errors :password-old]
|
||||
{:message (tr "errors.wrong-old-password")})
|
||||
|
@ -103,7 +103,7 @@
|
|||
:label (t locale "labels.confirm-password")}]]
|
||||
|
||||
[:> fm/submit-button*
|
||||
{:label (t locale "dashboard.update-settings")
|
||||
{:label (t locale "dashboard.password-change")
|
||||
:data-test "submit-password"
|
||||
:class (stl/css :update-btn)}]]))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue