diff --git a/src/bundle/Resources/public/js/scripts/helpers/form.validation.helper.js b/src/bundle/Resources/public/js/scripts/helpers/form.validation.helper.js index 8955eded8f..1e9fed0114 100644 --- a/src/bundle/Resources/public/js/scripts/helpers/form.validation.helper.js +++ b/src/bundle/Resources/public/js/scripts/helpers/form.validation.helper.js @@ -29,7 +29,7 @@ const checkIsEmpty = (field) => { } return { - isValid: input?.value ?? true, + isValid: input.value || input.value === 0 ? true : false, errorMessage, }; }; @@ -57,4 +57,4 @@ const validateIsEmptyField = (field) => { return validatorOutput; }; -export { formatErrorLine, validateIsEmptyField }; +export { formatErrorLine, validateIsEmptyField, checkIsEmpty };