Merge pull request #2114 from Safelite/Feature/Digital/CSR-2371

CSR-2371
This commit is contained in:
CarlNation 2024-11-14 15:02:13 -05:00 committed by GitHub
commit 7bdbdbf39a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -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: {

View file

@ -826,6 +826,10 @@ export const getters = {
order = state.order;
}
if (order.payment.isInsurance) {
return false;
}
return (
experimentMixin.methods
.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)