Merge pull request #1568 from Safelite/feature/Digital/csr-1828

Update payment.vue
This commit is contained in:
hiteshkumar87 2023-11-23 19:36:26 +05:30 committed by GitHub
commit 14d8c4f6eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,8 +350,8 @@ export default {
const taxedVaps = mapTaxedLineItemsToStoreFormat(taxedLineItems, availableVaps); const taxedVaps = mapTaxedLineItemsToStoreFormat(taxedLineItems, availableVaps);
// Add items that were not in the store yet but added via query string promo validation // Add items that were not in the store yet but added via query string promo validation
lineItems.promos = lineItems.promos ?? []; //newValidatedPromos contains both validated and revalidated promos.
lineItems.promos.push(...newValidatedPromos); lineItems.promos = Array.from(newValidatedPromos);
const vapsToAddToCart = getVapsThatNeedToBeAddedToSatisfyPromos( const vapsToAddToCart = getVapsThatNeedToBeAddedToSatisfyPromos(
newValidatedPromos, newValidatedPromos,
taxedVaps, taxedVaps,