Restored check for current deductable for ins PIA availability

This commit is contained in:
Leah Schumann 2024-07-02 06:15:32 -04:00
parent 85a8efe75d
commit fc9fd857ef

View file

@ -47,12 +47,12 @@
</div>
<paymentMethodQuestion
v-if="isPiaEnabled && totalAmountDue > 0.0"
v-if="isPiaEnabled && totalAmountDue > 0"
v-model="paymentMethodInternalModel"
validationRules="option-required" />
<alert
v-if="!isPiaEnabled && totalAmountDue > 0.0"
v-if="!isPiaEnabled && totalAmountDue > 0"
:isDismissible="false"
alertClass="alert-info"
cmsWidgetName="NoPiaDisclaimerWidget"
@ -578,8 +578,7 @@ export default {
isPiaEnabled() {
const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE);
const piaInsurance = this.getSettingValue(experimentSettings.PIA_INSURANCE);
var isEnabled = false;
if (this.isInsurance) {
return piaInsurance === "true" && this.currentDeductible > 0;
} else {
@ -587,7 +586,7 @@ export default {
}
},
paymentMethod() {
if (this.isPiaDisabled) {
if (!this.isPiaEnabled) {
return paymentMethods.LATER;
}