CASH-2025: add null check

This commit is contained in:
Adam Caouette 2026-01-12 10:29:06 -05:00
parent 3fb0aa82ee
commit 4eefa6963f

View file

@ -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;