Skip to content

Commit

Permalink
Merge pull request #7261 from Malith-19/error-message-fix
Browse files Browse the repository at this point in the history
Improve the error message in validation configuration form.
  • Loading branch information
JayaShakthi97 authored Jan 7, 2025
2 parents c70288a + de4d605 commit c88a48d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-horses-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.validation.v1": patch
---

Fix the variable passing to error message.
4 changes: 2 additions & 2 deletions features/admin.validation.v1/pages/validation-config-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ export const ValidationConfigEditPage: FunctionComponent<MyAccountSettingsEditPa
}

if (numValue > maxPasswordLengthLimit) {
return t("common:maxValidation", { maxPasswordLengthLimit });
return t("common:maxValidation", { max: maxPasswordLengthLimit });
}
} }
min={
Expand Down Expand Up @@ -1072,7 +1072,7 @@ export const ValidationConfigEditPage: FunctionComponent<MyAccountSettingsEditPa
}

if (numValue > maxPasswordLengthLimit) {
return t("common:maxValidation", { maxPasswordLengthLimit });
return t("common:maxValidation", { max: maxPasswordLengthLimit });
}
} }
min={
Expand Down

0 comments on commit c88a48d

Please sign in to comment.