Skip to content

Commit

Permalink
Merge pull request scandipwa#5261 from AleksandrsKondratjevs/issue-5242
Browse files Browse the repository at this point in the history
issue-5242 - Fix validation for fields
  • Loading branch information
AleksandrsKondratjevs authored Oct 31, 2022
2 parents 6e3fcec + 8cd1b9b commit 22489de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scandipwa/src/component/Field/Field.container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class FieldContainer extends PureComponent<FieldContainerProps, FieldCont
? !!(this.fieldRef as HTMLInputElement)?.checked
: this.fieldRef?.value;

if (!value) {
if (!value && value !== '') {
return false;
}

Expand Down

0 comments on commit 22489de

Please sign in to comment.