Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use explicit values in validate func
Browse files Browse the repository at this point in the history
amitbadala committed Oct 25, 2023
1 parent b3af734 commit fb99461
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/for-tests/src/App.js
Original file line number Diff line number Diff line change
@@ -208,7 +208,9 @@ const customFields = [
</div>
),
validate: async (value) => {
if (value) return undefined;
if (value === true) {
return undefined;
}
return "Please check Terms and conditions";
},
},

0 comments on commit fb99461

Please sign in to comment.