diff --git a/src/layouts/confirmation/confirmation.vue b/src/layouts/confirmation/confirmation.vue
index acb97cba2..bfe369588 100644
--- a/src/layouts/confirmation/confirmation.vue
+++ b/src/layouts/confirmation/confirmation.vue
@@ -93,7 +93,6 @@ import textBlock from "@/digital-components/text-block/text-block";
//Supporting files
import baseMixin from "@/mixins/base-mixin.js";
-import analyticsMixin from "@/mixins/analytics-mixin";
import store from "@/store";
import { storeActions } from "@/constants/store-actions";
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
@@ -107,7 +106,8 @@ import { get12HourTimeFormat, get12HourTimeMobileFormat } from "@/helpers/date-h
import { coverageStatus } from "@/constants/insurance";
import { getDisplayTextForDurationLength } from "@/helpers/duration-length-helper";
import { experimentSettings } from "@/constants/experiments";
-import experimentMixin from "@/mixins/experiment-mixin.js";
+import { partTypeStrings } from "@/constants/part-type-strings";
+import { containsLineItemWithPartType } from "@/helpers/service-package-helper";
export default {
name: "confirmation",
@@ -169,8 +169,17 @@ export default {
};
},
computed: {
+ isRecalibrationOnOrder() {
+ return containsLineItemWithPartType(
+ partTypeStrings.RECALIBRATION,
+ this?.lineItems?.supportingItems
+ );
+ },
shouldHideRecalibration() {
- return this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE);
+ return (
+ this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === "true" &&
+ this.isRecalibrationOnOrder
+ );
},
ShowCart() {
if (this.isPia && this.submittedOrder?.settledTenderAmount == 0) {
diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue
index 9b7222bfc..19b7cf261 100644
--- a/src/layouts/payment-method/payment-method.vue
+++ b/src/layouts/payment-method/payment-method.vue
@@ -593,7 +593,7 @@ export default {
},
shouldHideRecalibration() {
return (
- this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE).toLowerCase() === "true" &&
+ this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === "true" &&
this.isRecalibrationOnOrder
);
},
diff --git a/src/layouts/quote/quote.spec.js b/src/layouts/quote/quote.spec.js
index ef5c945a3..d9c1ffabf 100644
--- a/src/layouts/quote/quote.spec.js
+++ b/src/layouts/quote/quote.spec.js
@@ -7,6 +7,7 @@ import store from "@/store";
import * as navigateToHeritage from "@/helpers/heritage-integration/navigation-helper";
import { nextTick } from "vue";
import { experimentSettings } from "@/constants/experiments";
+import experimentMixin from "@/mixins/experiment-mixin.js";
import baseMixin from "@/mixins/base-mixin.js";
import { containsLineItemWithPartType } from "../../helpers/service-package-helper";
@@ -746,6 +747,14 @@ function setupMocks({ customMountOptions }) {
...customMountOptions,
});
+ mountOptions.mixins = [
+ {
+ methods: {
+ getSettingValue: jest.fn(),
+ },
+ },
+ ];
+
baseMixin.methods.ResetExternalParamsAndHideModal = jest.fn();
baseMixin.methods.isFormValid = jest.fn().mockReturnValue(true);
mountOptions.global.mocks["$store"] = store;
diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue
index 083862763..d53215a60 100644
--- a/src/layouts/quote/quote.vue
+++ b/src/layouts/quote/quote.vue
@@ -15,13 +15,6 @@
thresholdToUse: {{ thresholdToUse }}
-externalSource: {{ externalSource }}
-typeof recalSettingValue: {{ typeof recalSettingValue }}
-recalSettingValue: {{ recalSettingValue }}
-isInsuranceSelected: {{ isInsuranceSelected }}
-typeof isRecalibrationOnOrder: {{ typeof isRecalibrationOnOrder }}
-isRecalibrationOnOrder: {{ isRecalibrationOnOrder }}
-typeof shouldHideRecalibration: {{ typeof shouldHideRecalibration }}
-shouldHideRecalibration: {{ shouldHideRecalibration }}
- - -