From 982c0dc3225bbbdec86e6b915c1b84d5697720db Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 4 Nov 2024 11:43:09 -0500 Subject: [PATCH] CSR-2303 itac and nocomp should allow recal CSR-2303 itac and nocomp should allow recal --- src/layouts/confirmation/confirmation.vue | 5 +---- src/layouts/payment-method/payment-method.vue | 5 +---- src/store/index.js | 4 ++++ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/layouts/confirmation/confirmation.vue b/src/layouts/confirmation/confirmation.vue index 2f499122d..c27085cb5 100644 --- a/src/layouts/confirmation/confirmation.vue +++ b/src/layouts/confirmation/confirmation.vue @@ -177,10 +177,7 @@ export default { return containsRecalParts(this?.lineItems); }, shouldHideRecalibration() { - return ( - this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === - "true" && this.isRecalibrationOnOrder - ); + return this.$store.getters.shouldHideRecalibration; }, 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 74a3c65c0..d278a3c1c 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -596,10 +596,7 @@ export default { return containsRecalParts(order.lineItems); }, shouldHideRecalibration() { - return ( - this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() === - "true" && this.isRecalibrationOnOrder - ); + return this.$store.getters.shouldHideRecalibration; }, showApplePay() { return baseMixin.methods.showApplePay(); diff --git a/src/store/index.js b/src/store/index.js index ac69e4eb4..22b9c4776 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -819,6 +819,10 @@ export const getters = { return false; }, shouldHideRecalibration: (state) => { + if (state.order.policy.isNoComp || state.order.policy.isItac) { + return false; + } + return ( experimentMixin.methods .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)