From 85a8efe75d10264ca0b3cb1f57d37d398ba8c705 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Mon, 1 Jul 2024 06:22:34 -0400 Subject: [PATCH] Temp to merge develop --- src/layouts/payment-method/payment-method.spec.js | 8 ++++++++ src/layouts/payment-method/payment-method.vue | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.spec.js b/src/layouts/payment-method/payment-method.spec.js index ab0a0df99..16b64a58b 100644 --- a/src/layouts/payment-method/payment-method.spec.js +++ b/src/layouts/payment-method/payment-method.spec.js @@ -51,6 +51,14 @@ function setupMocks() { order: { payment: { isPia: false, + insuranceCoverage: { + isVerified: true, + }, + }, + policy: { + currentDeductible: 123, + isNoComp: false, + isItac: false, }, }, policy: { diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index bb12cf8ef..b1563b424 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -581,7 +581,7 @@ export default { var isEnabled = false; if (this.isInsurance) { - return piaInsurance === "true"; + return piaInsurance === "true" && this.currentDeductible > 0; } else { return piaExperience === "PIA Optional" || piaExperience === "PIA Required"; }