From 94a7ce5f47048925727089a40a430883ff90e430 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Thu, 10 Oct 2024 14:49:12 -0400 Subject: [PATCH] CSR-2244 | Send isInsurance to promo endpoints --- src/store/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 65c1d64d4..d744175c9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -810,8 +810,11 @@ export const getters = { return false; }, shouldHideRecalibration: (state) => { - return (experimentMixin.methods.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) - ?.toLowerCase() === "true" && getters.isRecalibrationOnOrder); + return ( + experimentMixin.methods + .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) + ?.toLowerCase() === "true" && getters.isRecalibrationOnOrder + ); }, areRearWipersOnOrder: (state) => { return !!state.order.lineItems.vaps?.some( @@ -2622,6 +2625,7 @@ export const actions = { carId: order.vehicle.carId, correlationId: order.referralCorrelationId, eon: order.eon, + isInsurance: order.payment.isInsurance, isRepair: order.damage.isRepair, glassToReplace: renameGlassToReplaceAttributes(order.damage.glassToReplace), lineItemsOnOrder: getArrayOfAllLineItemsAndChildParts(lineItemsToUse), @@ -2694,6 +2698,7 @@ export const actions = { carId: order.vehicle.carId, correlationId: order.referralCorrelationId, eon: order.eon, + isInsurance: order.payment.isInsurance, isRepair: order.damage.isRepair, glassToReplace: renameGlassToReplaceAttributes(order.damage.glassToReplace), lineItemsOnOrder: getArrayOfAllLineItemsAndChildParts(lineItemsToUse),