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";
|
} from "@/helpers/promotions-helper";
|
||||||
import { getDateDifferenceInDays } from "@/helpers/date-helper";
|
import { getDateDifferenceInDays } from "@/helpers/date-helper";
|
||||||
import sharedMutations from "./vuex-shared-mutations/vuexSharedMutations";
|
import sharedMutations from "./vuex-shared-mutations/vuexSharedMutations";
|
||||||
import { coverageStatusValue } from "@/constants/coverage-status";
|
import { coverageStatus, coverageStatusValue } from "@/constants/coverage-status";
|
||||||
// Export State
|
// Export State
|
||||||
const getDefaultState = () => {
|
const getDefaultState = () => {
|
||||||
return {
|
return {
|
||||||
|
|
@ -759,9 +759,8 @@ export const getters = {
|
||||||
isVerifiedAndDeductibleZeroConfirmed: (state) => {
|
isVerifiedAndDeductibleZeroConfirmed: (state) => {
|
||||||
// used as a CMS variable on /payment-method, needed for FunnelSubHeaderWidget on cart pages
|
// used as a CMS variable on /payment-method, needed for FunnelSubHeaderWidget on cart pages
|
||||||
if (
|
if (
|
||||||
state.order.policy.currentDeductible &&
|
(state.order.policy.currentDeductible === 0 || state.order.policy.currentDeductible > 0) &&
|
||||||
state.order.policy.currentDeductible === 0 &&
|
state.order.payment.insuranceCoverage.coverageStatus === coverageStatus.VERIFIED &&
|
||||||
state.order.payment.insuranceCoverage.coverageStatus === "Verified" &&
|
|
||||||
!state.order.policy.isNoComp
|
!state.order.policy.isNoComp
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue