diff --git a/examples/for-tests/src/App.js b/examples/for-tests/src/App.js index 84ce183d3..e7d7adf4c 100644 --- a/examples/for-tests/src/App.js +++ b/examples/for-tests/src/App.js @@ -208,7 +208,9 @@ const customFields = [ ), validate: async (value) => { - if (value) return undefined; + if (value === true) { + return undefined; + } return "Please check Terms and conditions"; }, },