separate insurance and cash logic for PIA

separate insurance and cash logic for PIA
This commit is contained in:
CarlNation 2024-05-15 12:02:04 -04:00
parent f28c92aa53
commit a37626cf1d

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;
},