Skip to content

Commit

Permalink
IBX-9022: Price tab - validation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Dec 12, 2024
1 parent 8defa25 commit 5a9e202
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const checkIsEmpty = (field) => {
}

return {
isValid: input?.value ?? true,
isValid: input.value || input.value === 0 ? true : false,
errorMessage,
};
};
Expand Down Expand Up @@ -57,4 +57,4 @@ const validateIsEmptyField = (field) => {
return validatorOutput;
};

export { formatErrorLine, validateIsEmptyField };
export { formatErrorLine, validateIsEmptyField, checkIsEmpty };

0 comments on commit 5a9e202

Please sign in to comment.