From e026dd387b7c61a25e080bf868e750d561b0f36c Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Thu, 14 Nov 2024 21:35:10 +0530 Subject: [PATCH 1/2] CSR-2371 remove Insurance check on shouldHideRecalibration getter. --- src/layouts/vehicle/vehicle.vue | 8 ++++++-- src/store/index.js | 4 ---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/layouts/vehicle/vehicle.vue b/src/layouts/vehicle/vehicle.vue index d1cbb30da..931a8f23f 100644 --- a/src/layouts/vehicle/vehicle.vue +++ b/src/layouts/vehicle/vehicle.vue @@ -398,8 +398,12 @@ export default { }, methods: { isDisabled(options) { - if (!options.length || store.getters.payment?.insuranceCoverage?.isVerified || (store.getters.order.payment?.isInsurance && - getFunnelCookie().HasDelayedClaimRegistration)) { + if ( + !options.length || + store.getters.payment?.insuranceCoverage?.isVerified || + (store.getters.order.payment?.isInsurance && + getFunnelCookie().HasDelayedClaimRegistration) + ) { return true; } else { return false; diff --git a/src/store/index.js b/src/store/index.js index ca10f8f62..9ee0e6e19 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -826,10 +826,6 @@ export const getters = { order = state.order; } - if (order.payment.isInsurance) { - return false; - } - return ( experimentMixin.methods .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) From d5d0e7a48046ee61f392bdca6d146c4ad780390e Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Thu, 14 Nov 2024 23:47:34 +0530 Subject: [PATCH 2/2] 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)