From d3bc079eba0712aaaa99f3c8cefed21c1700052f Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Tue, 23 Apr 2024 17:38:47 -0400 Subject: [PATCH] CSR-1742: update logic on store getter for CMS variable to determine which paragraph shows in subheader --- src/store/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index cac2baf7c..097c16689 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -29,7 +29,7 @@ import { } from "@/helpers/promotions-helper"; import { getDateDifferenceInDays } from "@/helpers/date-helper"; import sharedMutations from "./vuex-shared-mutations/vuexSharedMutations"; -import { coverageStatusValue } from "@/constants/coverage-status"; +import { coverageStatus, coverageStatusValue } from "@/constants/coverage-status"; // Export State const getDefaultState = () => { return { @@ -759,9 +759,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 && - state.order.policy.currentDeductible === 0 && - state.order.payment.insuranceCoverage.coverageStatus === "Verified" && + (state.order.policy.currentDeductible === 0 || state.order.policy.currentDeductible > 0) && + state.order.payment.insuranceCoverage.coverageStatus === coverageStatus.VERIFIED && !state.order.policy.isNoComp ) { return true;