Skip to content

Commit

Permalink
Allow quantity of "0" in cart to remove item
Browse files Browse the repository at this point in the history
  • Loading branch information
sacr3dc0w authored and BC-krasnoshapka committed Oct 6, 2022
1 parent 542253c commit 05e54bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Made PDP wallet buttons container hidden in cases when the product is not purchasable or out of stock [#2267](https://github.com/bigcommerce/cornerstone/pull/2267)
- Updated PayPal Accelerated Checkout default button styles [#2268](https://github.com/bigcommerce/cornerstone/pull/2268)
- Add logic to collect Product Details data and send it to the BC App stencil template through custom event [#2270](https://github.com/bigcommerce/cornerstone/pull/2270)
- Allow quantity of "0" in cart to remove item [#2266](https://github.com/bigcommerce/cornerstone/pull/2266)

## 6.6.1 (09-14-2022)

Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class Cart extends PageManager {
let invalidEntry;

// Does not quality for min/max quantity
if (!newQty) {
if (!Number.isInteger(newQty)) {
invalidEntry = $el.val();
$el.val(oldQty);
return showAlertModal(this.context.invalidEntryMessage.replace('[ENTRY]', invalidEntry));
Expand Down

0 comments on commit 05e54bc

Please sign in to comment.