Merge pull request #1509 from Safelite/feature/CSR-1384-modals-for-add-vaps

CSR-1384: fix if lineItems.vaps is null
This commit is contained in:
AdamCaouetteSafelite 2023-11-09 14:43:23 -05:00 committed by GitHub
commit 7e002e4ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,6 +201,7 @@ export default {
taxedVaps,
lineItems
);
lineItems.vaps = lineItems.vaps ?? [];
lineItems.vaps.push(...vapsToAddToCart);
// Call the "next" function to complete the transition to this page.