diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index 9020ae2db..392e7b59e 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -84,7 +84,6 @@ const storeActions = { SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING: "saveSupportingItemsSuppressingStateResetting", SAVE_VAPS: "saveVaps", - SAVE_SWITCH_INSURANCE_TO_CASH: "saveSwitchInsuranceToCash", }; export { storeActions }; diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js index 66a0f5047..d4e07cf0a 100644 --- a/src/constants/store-mutations.js +++ b/src/constants/store-mutations.js @@ -22,7 +22,6 @@ const storeMutations = { UPDATE_VAPS: "updateVaps", UPDATE_SUPPORTING_ITEMS: "updateSupportingItems", UPDATE_LINE_ITEMS_SERVER_DATA: "updateLineItemsServerData", - UPDATE_SWITCH_INSURANCE_TO_CASH: "updateSwitchInsuranceToCash", UPDATE_REGISTRATION_LICENSE_PLATE: "updateRegistrationLicensePlate", UPDATE_REGISTRATION_ADDRESS: "updateRegistrationAddress", diff --git a/src/helpers/heritage-integration/navigation-helper.js b/src/helpers/heritage-integration/navigation-helper.js index c8f320b1f..913fbcb1b 100644 --- a/src/helpers/heritage-integration/navigation-helper.js +++ b/src/helpers/heritage-integration/navigation-helper.js @@ -63,7 +63,6 @@ export async function navigateToHeritageFunnel({ shouldSaveSession = true, loadi src: "concept-funnel", conceptsqid: store.getters.applicationUser.savedSessionId, isInsurance: store.getters.payment.isInsurance, - switchInsuranceToCash: store.getters.order.switchInsuranceToCash, }); } diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 2678a78c9..277995ce5 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -177,27 +177,6 @@ export default { vehicleQuestionsMixin.methods.navigateBack(this); }, forwardButtonAction() { - // if referral is 6 digits unverified it indicates they were previously insurance and been to heritage - // need to set an indicator for heritage if they switched from insurance to cash. many things to reset on the referral in heritage if so - const prevPayment = this.$store.getters.payment; - if ( - this.$store.getters.order.referralNumber?.length === 6 && - !prevPayment.insuranceCoverage.isVerified && - prevPayment.isInsurance - ) { - this.dispatchStoreAction( - this.storeActions.SAVE_SWITCH_INSURANCE_TO_CASH, - true, - false - ); - } else { - this.dispatchStoreAction( - this.storeActions.SAVE_SWITCH_INSURANCE_TO_CASH, - false, - false - ); - } - this.dispatchStoreAction( this.storeActions.SAVE_PAYMENT_TYPE, this.isInsuranceSelected, diff --git a/src/store/index.js b/src/store/index.js index 23e7e14df..c3c9fc8a0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -95,7 +95,6 @@ const getDefaultState = () => { referralDate: null, referralCorrelationId: null, eon: null, - switchInsuranceToCash: false, }, applicationUser: { eventBus: [], @@ -281,9 +280,6 @@ export const mutations = { state.order.schedule.jobMaxMinutes = scheduleInfo.jobMaxMinutes; } }, - updateSwitchInsuranceToCash(state, switchValue) { - state.order.switchInsuranceToCash = switchValue; - }, // applicationUser MUTATIONS updateSaveSessionPromise(state, saveSessionPromise) { @@ -1871,10 +1867,6 @@ export const actions = { context.commit(storeMutations.UPDATE_VAPS, vaps); }, - saveSwitchInsuranceToCash(context, switchValue) { - context.commit(storeMutations.UPDATE_SWITCH_INSURANCE_TO_CASH, switchValue); - }, - // Price order actions async priceOrderItemsAndSaveServerData( context,