Skip to content

Commit

Permalink
[SWAT-4099][Form Validation Open Source] Fix in isFieldValid (#16)
Browse files Browse the repository at this point in the history
* fix to send the correct value

* 1.0.2

---------

Co-authored-by: Brian Salazar <briansalazar@Brians-MacBook-Pro.local>
  • Loading branch information
Brian06 and Brian Salazar authored Oct 22, 2024
1 parent 4d02934 commit f640879
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ltvco/form-validation",
"version": "1.0.1",
"version": "1.0.2",
"description": "Library to handle form validation, similar to jQuery Validation, but without any dependencies.",
"types": "./dist/types/index.d.ts",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export class Validation implements FormValidation {
if (!this.fieldsToValidate.includes(field))
throw new Error(`Field "${field.name}" is not being validated`);

return !!this.validateField(field, silently);
return !this.validateField(field, silently);
}

/**
Expand Down

0 comments on commit f640879

Please sign in to comment.