CSR-1742: update logic on store getter for CMS variable to determine which paragraph shows in subheader

This commit is contained in:
Adam Caouette 2024-04-23 17:38:47 -04:00
parent 310e77383a
commit d3bc079eba

View file

@ -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;