Skip to content

Commit 9edef16

Browse files
authored
IBX-9022: price tab validation issues (#1407)
1 parent c4dfa51 commit 9edef16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bundle/Resources/public/js/scripts/helpers/form.validation.helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const checkIsEmpty = (field) => {
2929
}
3030

3131
return {
32-
isValid: input?.value ?? true,
32+
isValid: (input.value || input.value === 0) ?? false,
3333
errorMessage,
3434
};
3535
};
@@ -57,4 +57,4 @@ const validateIsEmptyField = (field) => {
5757
return validatorOutput;
5858
};
5959

60-
export { formatErrorLine, validateIsEmptyField };
60+
export { formatErrorLine, validateIsEmptyField, checkIsEmpty };

0 commit comments

Comments
 (0)