Merge pull request #1853 from Safelite/feature/pia
separate insurance and cash logic for PIA
This commit is contained in:
commit
c11c9490fc
1 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue