@infrab4a/connect-angular 4.14.0-beta.5 → 4.14.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1576,7 +1576,7 @@ class CartService {
|
|
|
1576
1576
|
if (filterProductsCategories.length) {
|
|
1577
1577
|
const cartValuelWithCategories = filterProductsCategories.reduce((a, b) => a + b.pricePaid * b.quantity, 0);
|
|
1578
1578
|
const cartItensQuantityWithCategories = filterProductsCategories.reduce((a, b) => a + b.quantity, 0);
|
|
1579
|
-
const hasMinValue = cartValuelWithCategories >= campaign.cartValueMin;
|
|
1579
|
+
const hasMinValue = campaign.cartValueMin && cartValuelWithCategories >= campaign.cartValueMin;
|
|
1580
1580
|
const hasMinQuantity = campaign.cartItensQuantityMin && cartItensQuantityWithCategories >= campaign.cartItensQuantityMin;
|
|
1581
1581
|
console.log('------------------------------');
|
|
1582
1582
|
console.log('campaing WITH categories', campaign.name, campaign.cartValueMin, campaign.cartItensQuantityMin);
|