Merge remote-tracking branch 'origin/feature/CASH-2025' into feature/CASH-2025
This commit is contained in:
commit
1fbdf2c08f
2 changed files with 11 additions and 5 deletions
|
|
@ -11,8 +11,7 @@
|
|||
<checkboxQuestion
|
||||
class="mt-3"
|
||||
cmsWidgetName="OemGlassInputQuestionWidget"
|
||||
v-model="installOemGlass"
|
||||
@click="waitListChecked" />
|
||||
v-model="installOemGlass" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -332,9 +332,12 @@ 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 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.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) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue