Skip to content

Commit

Permalink
feat(ui): ajusta validação de número
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldallafavera committed Oct 22, 2024
1 parent 7d18b6a commit 22b4272
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/formbuilder/lib/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export function validateField(
}

validation = defaultNumberValidation.refine(
(number) => !fieldConfig.required || Boolean(number),
(number) => !fieldConfig.required || !Number.isNaN(number),
requiredError,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/formbuilder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@continha/formbuilder",
"version": "1.6.9",
"version": "1.6.10",
"private": false,
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@continha/ui",
"version": "1.14.23",
"version": "1.14.24",
"private": false,
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 22b4272

Please sign in to comment.