Merge pull request #2909 from Safelite/feature/CASH-1713
CASH-1713 | Yet another fix for unpriced item
This commit is contained in:
commit
9ffd1ec2be
1 changed files with 10 additions and 0 deletions
|
|
@ -269,6 +269,16 @@ export default {
|
||||||
availableVaps,
|
availableVaps,
|
||||||
lineItemsForCart
|
lineItemsForCart
|
||||||
);
|
);
|
||||||
|
// Add prices to all line items, sometimes they are not there when they come back from heritage
|
||||||
|
// See CASH-1713 for details
|
||||||
|
lineItemsForCart.glassParts = addPricesToLineItems(
|
||||||
|
lineItemsForCart.glassParts ?? [],
|
||||||
|
pricedLineItems
|
||||||
|
);
|
||||||
|
lineItemsForCart.supportingItems = addPricesToLineItems(
|
||||||
|
lineItemsForCart.supportingItems ?? [],
|
||||||
|
pricedLineItems
|
||||||
|
);
|
||||||
lineItemsForCart.vaps = addPricesToLineItems(lineItemsForCart.vaps ?? [], pricedLineItems);
|
lineItemsForCart.vaps = addPricesToLineItems(lineItemsForCart.vaps ?? [], pricedLineItems);
|
||||||
lineItemsForCart.vaps.push(...vapsToAddToCart);
|
lineItemsForCart.vaps.push(...vapsToAddToCart);
|
||||||
// Tax items on order
|
// Tax items on order
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue