From 3fb0aa82ee645fb1039ef9ce3bc799b05b174d82 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 12 Jan 2026 10:24:25 -0500 Subject: [PATCH 1/5] CASH-2025: remove unneeded call --- src/layouts/quote/oem-glass-question/oem-glass-question.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layouts/quote/oem-glass-question/oem-glass-question.vue b/src/layouts/quote/oem-glass-question/oem-glass-question.vue index 1fc251b4c..b591587c6 100644 --- a/src/layouts/quote/oem-glass-question/oem-glass-question.vue +++ b/src/layouts/quote/oem-glass-question/oem-glass-question.vue @@ -11,8 +11,7 @@ + v-model="installOemGlass" /> From 4eefa6963f8d41733f4c4c03dea2db81602a4876 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 12 Jan 2026 10:29:06 -0500 Subject: [PATCH 2/5] CASH-2025: add null check --- src/layouts/quote/quote.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 8d86c16af..3c69ec53c 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -332,7 +332,7 @@ export default { const nullSafeGlassParts = lineItems.glassParts ?? []; const oemGlassCheck = resultMap.oemGlassCheck; - const offerOem = experimentAllowsOfferOem ? oemGlassCheck.offerOem : false; + const offerOem = experimentAllowsOfferOem ? oemGlassCheck?.offerOem : false; const oemGlassPieceParts = oemGlassCheck?.glassPieceParts; const oemGlassParts = oemGlassPieceParts ? oemGlassPieceParts[0].parts : null; const isOemGlassSelected = store.getters.order.isOemGlassSelected; From 42645e176077d59499d03763b0274712e00c6297 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 12 Jan 2026 10:35:43 -0500 Subject: [PATCH 3/5] CASH-2025: add additional check to avoid Typeerror --- src/layouts/quote/quote.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 3c69ec53c..31309f182 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -334,7 +334,7 @@ export default { const oemGlassCheck = resultMap.oemGlassCheck; const offerOem = experimentAllowsOfferOem ? oemGlassCheck?.offerOem : false; const oemGlassPieceParts = oemGlassCheck?.glassPieceParts; - const oemGlassParts = oemGlassPieceParts ? oemGlassPieceParts[0].parts : null; + const oemGlassParts = (oemGlassPieceParts && oemGlassPieceParts.length > 0) ? oemGlassPieceParts[0].parts : null; const isOemGlassSelected = store.getters.order.isOemGlassSelected; let alternateGlassPartsForOem; From e869c97becb9f65b1fef23c46db16084ecbca39c Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 12 Jan 2026 10:40:18 -0500 Subject: [PATCH 4/5] CASH-2025: add a null check on lineItems.glassParts before calling swapOEM... --- src/layouts/quote/quote.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 31309f182..66d4afcb6 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -764,7 +764,7 @@ export default { this.lineItems.supportingItems = this.filterOutFees(this.lineItems.supportingItems); } - if (this.alternateGlassPartsForOem && this.alternateGlassPartsForOem.length > 0) { + if (this.lineItems.glassParts && this.alternateGlassPartsForOem && this.alternateGlassPartsForOem.length > 0) { let isOEMGlassOnOrder = this.isOEMGlassOnOrder(this.lineItems.glassParts); if ( (this.isOemGlassSelected && !isOEMGlassOnOrder) || From 48ae53649219098e1671bd308e08edd1a1b61493 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 12 Jan 2026 10:40:54 -0500 Subject: [PATCH 5/5] CASH-2025: prettier changes --- src/layouts/quote/quote.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 66d4afcb6..096620d65 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -334,7 +334,10 @@ export default { const oemGlassCheck = resultMap.oemGlassCheck; const offerOem = experimentAllowsOfferOem ? oemGlassCheck?.offerOem : false; const oemGlassPieceParts = oemGlassCheck?.glassPieceParts; - const oemGlassParts = (oemGlassPieceParts && oemGlassPieceParts.length > 0) ? oemGlassPieceParts[0].parts : null; + const oemGlassParts = + oemGlassPieceParts && oemGlassPieceParts.length > 0 + ? oemGlassPieceParts[0].parts + : null; const isOemGlassSelected = store.getters.order.isOemGlassSelected; let alternateGlassPartsForOem; @@ -764,7 +767,11 @@ export default { this.lineItems.supportingItems = this.filterOutFees(this.lineItems.supportingItems); } - if (this.lineItems.glassParts && this.alternateGlassPartsForOem && this.alternateGlassPartsForOem.length > 0) { + if ( + this.lineItems.glassParts && + this.alternateGlassPartsForOem && + this.alternateGlassPartsForOem.length > 0 + ) { let isOEMGlassOnOrder = this.isOEMGlassOnOrder(this.lineItems.glassParts); if ( (this.isOemGlassSelected && !isOEMGlassOnOrder) ||