whole number language and regex validatiojn

This commit is contained in:
2024-12-16 16:44:44 +00:00
parent ead00dda76
commit 54728d9565
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1432,7 +1432,7 @@ export function NumericField(props) {
: t("newappeal:is-required-label");
};
const isNumber = (value) => {
const regex = /^\d*\.?\d{0,1}$/;
const regex = /^\d+$/;
return regex.test(value)
? undefined
: t("newappeal:invalid-number-label");