Added navigateAfterSaveToHeritageFunnel method is place of navigateToHeritageFunnel

This commit is contained in:
Leah Schumann 2022-05-02 11:14:01 -04:00
parent a4f7b862eb
commit 023cb9e421

View file

@ -250,7 +250,7 @@ export default {
// if the car entered is the same as the car found OR the glass options for the found car match the users damage selections // if the car entered is the same as the car found OR the glass options for the found car match the users damage selections
if (carEntered.carId == carFound.carId || isGlassAvailableForCarId(carFound.carId)) { if (carEntered.carId == carFound.carId || isGlassAvailableForCarId(carFound.carId)) {
navigateToHeritageFunnel(); navigateAfterSaveToHeritageFunnel(this.$route);
} else { } else {
const partsData = await baseMixin.methods.dispatchNonBlockingStoreAction( const partsData = await baseMixin.methods.dispatchNonBlockingStoreAction(
this.storeActions.GET_PARTS_OR_QUESTIONS, this.storeActions.GET_PARTS_OR_QUESTIONS,
@ -269,7 +269,7 @@ export default {
// if multiple cars were found // if multiple cars were found
if (carsFound.find(car => car.carId === carEntered.carId)) { if (carsFound.find(car => car.carId === carEntered.carId)) {
// and one of them matches the car id entered // and one of them matches the car id entered
navigateToHeritageFunnel(); navigateAfterSaveToHeritageFunnel(this.$route);
} else { } else {
// and there is no match, navigate to "address-vehicle" page // and there is no match, navigate to "address-vehicle" page
this.$router.navigateAfterSave(this.navigationScenarios.CONTINUING_WITH_MULTIPLE_VEHICLES, this.$route, {}, {}, carsFound); this.$router.navigateAfterSave(this.navigationScenarios.CONTINUING_WITH_MULTIPLE_VEHICLES, this.$route, {}, {}, carsFound);