diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 8a6760e4f..3024a67d9 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -122,10 +122,6 @@ const endpoints = { url: "/experiments/api/v1/experiments/run", method: "POST", }, - GetPriceForLineItems: { - url: "/price/api/v1/price/order-items", - method: "GET", - }, }; export { endpoints }; diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index 108b64941..c4df053dc 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -40,7 +40,7 @@ const storeActions = { RUN_EXPERIMENTS_FOR_TRIGGER: "runExperimentsForTrigger", CLEAR_VIN: "clearVin", RESET_SAVE_SESSION_PROMISE: "resetSaveSessionPromise", - + // DEPENDENCY MUTATIONS RESET_DAMAGE_STATE_AND_DEPENDENCIES: "resetDamageAndDependencies", RESET_REGISTRATION_STATE_AND_DEPENDENCIES: "resetRegistrationAndDependencies", @@ -65,7 +65,6 @@ const storeActions = { "resetMoldingAndCapabilityQuestionAnswersIfNeeded", SAVE_MOLDING_QUESTION_ANSWERS: "saveMoldingQuestionAnswers", SAVE_CAPABILITY_QUESTION_ANSWERS: "saveCapabilityQuestionAnswers", - SAVE_IS_INSURANCE: "saveIsInsurance", SAVE_QUOTE_PAGE_SELECTIONS: "saveQuotePageSelections", SAVE_PAYMENT_TYPE: "savePaymentType", SAVE_SUPPORTING_ITEMS: "saveSupportingItems", diff --git a/src/layouts/part-questions/part-questions.spec.js b/src/layouts/part-questions/part-questions.spec.js index f00484ae9..8de000009 100644 --- a/src/layouts/part-questions/part-questions.spec.js +++ b/src/layouts/part-questions/part-questions.spec.js @@ -221,8 +221,8 @@ describe("partQuestions.vue...", () => { test("Should clear out answerData", async () => { // Arrange store.getters.payment = { - insuranceCoverage: null - } + insuranceCoverage: null, + }; const { wrapper } = setupMocks({}); await wrapper.setData({ diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 20604c91e..9d6eef9ee 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -117,8 +117,6 @@ export default { vm.supportingItems = resultMap.supportingItems; vm.availableLineItems = pricingResults; vm.isInsuranceSelected = vm.getDefaultIsInsuranceSelectedValue(); - - vm.dispatchStoreAction(storeActions.SAVE_IS_INSURANCE, vm.isInsuranceSelected); }); }, data() { diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index a6e6e1367..8ed805bf3 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -329,8 +329,11 @@ export default { navigateForward() { const payment = this.$store.getters.payment; - console.log(payment) - const vehicleChangedDuringPolicyLookupInHeritage = payment.isInsurance && payment.insuranceCoverage.coverageStatus && payment.insuranceCoverage.coverageStatus !== ""; + console.log(payment); + const vehicleChangedDuringPolicyLookupInHeritage = + payment.isInsurance && + payment.insuranceCoverage.coverageStatus && + payment.insuranceCoverage.coverageStatus !== ""; if (vehicleChangedDuringPolicyLookupInHeritage) { if (store.getters.damage.isRepair) { this.$router.navigateWithSaving( diff --git a/src/store/index.js b/src/store/index.js index 1aa3897f7..c6bf967ed 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1419,9 +1419,6 @@ export const actions = { clearVin(context) { context.commit(storeMutations.UPDATE_VEHICLE_VIN, null); }, - saveIsInsurance(context, isInsurance) { - context.commit(storeMutations.UPDATE_IS_INSURANCE, isInsurance); - }, isVinOptionalVehicle(context) { switch (context.state.order.vehicle.make.toLowerCase()) { case "mercedes benz":