From d5d0e7a48046ee61f392bdca6d146c4ad780390e Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Thu, 14 Nov 2024 23:47:34 +0530 Subject: [PATCH] CSR-2371 revert previous commit and check experiment for recal disclaimer --- src/layouts/quote/quote.vue | 9 ++++++++- src/store/index.js | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index df93bd338..3f0da0131 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -436,8 +436,15 @@ export default { (!this.isRecalibrationOnOrder || !this.shouldHideRecalibration) ); }, + isRecalPriceRemove() { + return ( + experimentMixin.methods + .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) + ?.toLowerCase() === "true" + ); + }, showRecalDisclaimer() { - return this.isRecalibrationOnOrder && this.shouldHideRecalibration; + return this.isRecalibrationOnOrder && this.isRecalPriceRemove; }, }, methods: { diff --git a/src/store/index.js b/src/store/index.js index 9ee0e6e19..ca10f8f62 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -826,6 +826,10 @@ export const getters = { order = state.order; } + if (order.payment.isInsurance) { + return false; + } + return ( experimentMixin.methods .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)