From 44b66352ab981b116fb6037b4d558261f9f4780d Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 1 Mar 2024 13:45:06 +0100 Subject: [PATCH] :bug: Fix invalid error is displayed when changing the password --- frontend/src/app/main/ui/settings/password.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/settings/password.cljs b/frontend/src/app/main/ui/settings/password.cljs index 9039dfa76..db12f1b3c 100644 --- a/frontend/src/app/main/ui/settings/password.cljs +++ b/frontend/src/app/main/ui/settings/password.cljs @@ -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)}]]))