This commit is contained in:
Katie Kroell 2023-09-12 17:02:57 -04:00
parent fc8ec1745d
commit c90ef8b7c2
2 changed files with 7 additions and 5 deletions

View file

@ -6,7 +6,6 @@ import { shallowMount } from '@vue/test-utils';
import { getMountOptions } from '@/helpers/unit-test-helper.js';
import navigationScenarios from '@/router/router-constants/navigation-scenarios';
import { createTestingPinia } from '@pinia/testing';
import { getRandomString, getRandomInt } from '@/helpers/data-generation.js';
import { useMainStore } from '@/store';
// import { useMainStore } from '@/store/index.js';

View file

@ -200,12 +200,15 @@ export default {
this.navigationScenarios.CLICKED_FORWARD_NON_LISTED_VEHICLE,
this.$route,
{},
{});
} else if (!!this.endorsementsForSelectedVehicle) {
this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD_WITH_ENDORSEMENTS,
{}
);
} else if (this.endorsementsForSelectedVehicle) {
this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD_WITH_ENDORSEMENTS,
this.$route,
{},
{});
{}
);
} else {
this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD_LISTED_VEHICLE,