Merge pull request #2876 from Safelite/feature/CASH-1072

Feature/CASH-1072
This commit is contained in:
Chris 2025-10-03 09:06:23 -04:00 committed by GitHub
commit 9a896923ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -805,7 +805,10 @@ export default {
const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE); const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE);
if (this.isInsurance) { if (this.isInsurance) {
return piaInsurance === "true" && this.currentDeductible > 0; return (
piaInsurance === "true" &&
(this.currentDeductible > 0 || +this.totalAmountDue > 0)
);
} else { } else {
return piaExperience === "PIA Optional" || piaExperience === "PIA Required"; return piaExperience === "PIA Optional" || piaExperience === "PIA Required";
} }
@ -837,6 +840,7 @@ export default {
return ( return (
this.showInsuranceCoverageAs !== coverageStatus.PENDING && this.showInsuranceCoverageAs !== coverageStatus.PENDING &&
!this.isRecalPriceRemove && !this.isRecalPriceRemove &&
this.isPiaEnabled &&
this.hasSettingEqualTo(experimentSettings.DISPLAY_AFTERPAY_BREAKOUT_DISPLAY, "true") this.hasSettingEqualTo(experimentSettings.DISPLAY_AFTERPAY_BREAKOUT_DISPLAY, "true")
); );
}, },