From fb99461df39dc4f6f3c0cb8e0b973d2e36709e18 Mon Sep 17 00:00:00 2001 From: amitbadala Date: Wed, 25 Oct 2023 14:05:36 +0530 Subject: [PATCH] Use explicit values in validate func --- examples/for-tests/src/App.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; }, },