Skip to content

Commit

Permalink
CR fix (#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorohova authored Aug 29, 2024
1 parent 3ed293c commit cca58a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin/utils/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cca58a4

Please sign in to comment.