From 6789713d1dd2d1937f962c939d192c9c0a6a0d8f Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Wed, 24 Apr 2024 09:08:36 -0400 Subject: [PATCH] prettier --- src/layouts/payment-method/payment-method.vue | 5 ++++- src/store/index.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index db82a7a34..c4e98e114 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -340,7 +340,10 @@ export default { const currentDeductible = store.getters.policy.currentDeductible; const isInsuranceSet = () => { if (isInsurance !== null) { - if (insuranceCoverageStatus === coverageStatus.VERIFIED && !(currentDeductible === 0 || currentDeductible > 0) ) { + if ( + insuranceCoverageStatus === coverageStatus.VERIFIED && + !(currentDeductible === 0 || currentDeductible > 0) + ) { return false; // if coverageStatus is verified there must be a valid deductible also } return true; diff --git a/src/store/index.js b/src/store/index.js index ac817c6a1..99d87ba60 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -766,7 +766,8 @@ export const getters = { isVerifiedAndDeductibleZeroConfirmed: (state) => { // used as a CMS variable on /payment-method, needed for FunnelSubHeaderWidget on cart pages if ( - (state.order.policy.currentDeductible === 0 || state.order.policy.currentDeductible > 0) && + (state.order.policy.currentDeductible === 0 || + state.order.policy.currentDeductible > 0) && state.order.payment.insuranceCoverage.coverageStatus === coverageStatus.VERIFIED && !state.order.policy.isNoComp ) {