diff --git a/src/iss-components/cart-dropdown/cart-dropdown.vue b/src/iss-components/cart-dropdown/cart-dropdown.vue index 5aba7f8d..f6be8c4b 100644 --- a/src/iss-components/cart-dropdown/cart-dropdown.vue +++ b/src/iss-components/cart-dropdown/cart-dropdown.vue @@ -437,6 +437,23 @@ export default { partTypeStrings.MOBILE_FEE ) : null; + }, + isUnverified() { + const { isClaimRegistrationRequired } = useMainStore().issConfig; + const registerClaimSuccessful = !!this.submittedOrder.payment.insuranceCoverage.isVerified; + if (!this.submittedOrder.policy.policyLookupSuccessful) { + return true; + } + if (this.isNoComp && !useMainStore().issConfig.enableNoCompQuote) { + return true; + } + if (!this.isNoComp && this.deductible == null) { + return true; + } + if (isClaimRegistrationRequired && !registerClaimSuccessful) { + return true; + } + return false; } }, methods: { @@ -447,7 +464,7 @@ export default { this.isExpanded = !this.isExpanded; }, getDisplayed(amount) { - const { isUnverified } = useMainStore(); + const isUnverified = this.submittedOrder ? this.isUnverified : useMainStore().isUnverified; return isUnverified ? VERIFYING_COVERAGE : formatAmountInDollars(amount); diff --git a/src/layouts/order-confirmation/order-confirmation.spec.js b/src/layouts/order-confirmation/order-confirmation.spec.js index 83ae6067..dca28fb8 100644 --- a/src/layouts/order-confirmation/order-confirmation.spec.js +++ b/src/layouts/order-confirmation/order-confirmation.spec.js @@ -72,7 +72,10 @@ const initialStore = { }, payment: { isInsurance: true, - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, contactInfo: { firstName: 'Test', @@ -108,7 +111,10 @@ const sessionStorage = { } }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -315,7 +321,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Mobile' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -354,7 +363,10 @@ describe('OrderConfirmation.vue', () => { } }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -401,7 +413,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Mobile' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -440,7 +455,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Dropoff' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -479,7 +497,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Inshop' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -515,7 +536,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Mobile' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -554,7 +578,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Inshop' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -590,7 +617,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Mobile' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -629,7 +659,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Dropoff' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: [] @@ -669,7 +702,10 @@ describe('OrderConfirmation.vue', () => { appointmentType: 'Inshop' }, payment: { - isPayInAdvance: false + isPayInAdvance: false, + insuranceCoverage: { + isVerified: true + } }, lineItems: { vaps: []