Restored check for current deductable for ins PIA availability
This commit is contained in:
parent
85a8efe75d
commit
fc9fd857ef
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue