Skip to content

Commit

Permalink
- function isSoldOut() should return true if quantity is <= 0, not on…
Browse files Browse the repository at this point in the history
…ly if it is === 0. (#1311)
  • Loading branch information
ScyDev authored and kieckhafer committed Aug 19, 2016
1 parent 4f7b114 commit 7e49a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/methods/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function denormalize(id, field) {
function isSoldOut(variants) {
return variants.every(variant => {
if (variant.inventoryManagement && variant.inventoryPolicy) {
return Catalog.getVariantQuantity(variant) === 0;
return Catalog.getVariantQuantity(variant) <= 0;
}
return false;
});
Expand Down

0 comments on commit 7e49a09

Please sign in to comment.