separate insurance and cash logic for PIA
separate insurance and cash logic for PIA
This commit is contained in:
parent
f28c92aa53
commit
a37626cf1d
1 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue