Merge pull request #1853 from Safelite/feature/pia

separate insurance and cash logic for PIA
This commit is contained in:
CarlNation 2024-05-15 13:03:07 -04:00 committed by GitHub
commit c11c9490fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -559,11 +559,12 @@ export default {
const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE); const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE);
const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE); const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE);
const isEnabled = var isEnabled = false;
(piaExperience === "PIA Optional" || if (this.isInsurance) {
piaExperience === "PIA Required" || isEnabled = piaInsurance === "true" && this.currentDeductible !== 0;
piaInsurance === "true") && } else {
this.currentDeductible !== 0; isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required";
}
return !isEnabled; return !isEnabled;
}, },