Skip to content

Commit

Permalink
Use explicit values in validate func
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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";
},
},
Expand Down

0 comments on commit fb99461

Please sign in to comment.