CASH-2025: add additional check to avoid Typeerror

This commit is contained in:
Adam Caouette 2026-01-12 10:35:43 -05:00
parent 4eefa6963f
commit 42645e1760

View file

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