CSR-1742: add specialized getter for CMS variable use
This commit is contained in:
parent
62993978fc
commit
35a8dc6045
1 changed files with 12 additions and 0 deletions
|
|
@ -756,6 +756,18 @@ export const getters = {
|
|||
.reduce((r, c) => Object.assign(r, c), {}) ?? {},
|
||||
submittedOrder: (state) => JSON.parse(window.sessionStorage.getItem("submittedOrder")),
|
||||
hasSubmittedOrder: (state) => window.sessionStorage.getItem("submittedOrder") !== null,
|
||||
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.isNoComp
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
};
|
||||
|
||||
function getNonFalseValuesOfPropertyInArrayOfObjects(array, propertyName) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue