CSR-1742: update logic on store getter for CMS variable to determine which paragraph shows in subheader
This commit is contained in:
parent
310e77383a
commit
d3bc079eba
1 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue