From 9aac39d72f3cb0ba1833b6ccc2c7de0b86342b95 Mon Sep 17 00:00:00 2001 From: Elena Shorohova Date: Thu, 29 Aug 2024 18:04:26 +0300 Subject: [PATCH] CR fix --- src/admin/utils/validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/utils/validator.ts b/src/admin/utils/validator.ts index 293ce3a63..4480cfd3a 100644 --- a/src/admin/utils/validator.ts +++ b/src/admin/utils/validator.ts @@ -24,7 +24,7 @@ export const validateField = (validationType: string, value: string, customValid errorMessage = isValid ? "" : REQUIRED_MESSAGE; break; case UNIQUE_REQUIRED: - isValid = isNotEmpty && customValidation; + isValid = isNotEmpty && (customValidation === true); errorMessage = isValid ? "" : UNIQUE_REQUIRED_MESSAGE; break; case URL: