Skip to content

Commit

Permalink
Merge pull request scandipwa#5272 from AleksandrsKondratjevs/issue-5270
Browse files Browse the repository at this point in the history
issue-5270 - Change option label show if no qty can be set
  • Loading branch information
AleksandrsKondratjevs authored Nov 2, 2022
2 parents d34fc37 + 4f4dc47 commit 9235cb8
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 9235cb8

Please sign in to comment.