Merge pull request #1846 from Safelite/feature/CSR-1744-ajc

CSR-1744: prevent PIA if deductible is $0
This commit is contained in:
AdamCaouetteSafelite 2024-05-07 11:40:18 -04:00 committed by GitHub
commit 494e591efa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -560,9 +560,10 @@ export default {
const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE);
const isEnabled =
piaExperience === "PIA Optional" ||
piaExperience === "PIA Required" ||
piaInsurance === "true";
(piaExperience === "PIA Optional" ||
piaExperience === "PIA Required" ||
piaInsurance === "true") &&
this.currentDeductible !== 0;
return !isEnabled;
},