CASH-1072: Offer PIA for $0 deductible with VAPS. Only show afterpay breakout with PIA
This commit is contained in:
parent
8fff43c2bc
commit
ac64aa0ed7
1 changed files with 5 additions and 1 deletions
|
|
@ -805,7 +805,10 @@ export default {
|
|||
const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE);
|
||||
|
||||
if (this.isInsurance) {
|
||||
return piaInsurance === "true" && this.currentDeductible > 0;
|
||||
return (
|
||||
piaInsurance === "true" &&
|
||||
(this.currentDeductible > 0 || +this.totalAmountDue > 0)
|
||||
);
|
||||
} else {
|
||||
return piaExperience === "PIA Optional" || piaExperience === "PIA Required";
|
||||
}
|
||||
|
|
@ -837,6 +840,7 @@ export default {
|
|||
return (
|
||||
this.showInsuranceCoverageAs !== coverageStatus.PENDING &&
|
||||
!this.isRecalPriceRemove &&
|
||||
this.isPiaEnabled &&
|
||||
this.hasSettingEqualTo(experimentSettings.DISPLAY_AFTERPAY_BREAKOUT_DISPLAY, "true")
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue