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 piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE);
const isEnabled =
(piaExperience === "PIA Optional" ||
piaExperience === "PIA Required" ||
piaInsurance === "true") &&
this.currentDeductible !== 0;
var isEnabled = false;
if (this.isInsurance) {
isEnabled = piaInsurance === "true" && this.currentDeductible !== 0;
} else {
isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required";
}
return !isEnabled;
},