Skip to content

Commit

Permalink
Change option label show if no qty can be set
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrsKondratjevs committed Nov 1, 2022
1 parent f3667fc commit 4f4dc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scandipwa/src/util/Product/Transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const bundleOptionToLabel = (
const renderLabel = label ?? fallbackLabel;

return {
baseLabel: !canChangeQuantity && quantity >= 0 ? `${ quantity } x ${ renderLabel } ` : `${ renderLabel } `,
baseLabel: !canChangeQuantity && quantity > 0 ? `${ quantity } x ${ renderLabel } ` : `${ renderLabel } `,
priceLabel: `${ priceLabel } ${ percentLabel }`,
};
};
Expand Down

0 comments on commit 4f4dc47

Please sign in to comment.