only route to endorsements page if Educator/Parking Guard endorsement

This commit is contained in:
Katie Kroell 2023-11-30 11:12:34 -05:00
parent 97936ee0bd
commit 7c6e4c3eee

View file

@ -231,7 +231,9 @@ export default {
{},
{}
);
} else if (this.endorsementsForSelectedVehicle?.length > 0) {
} else if (this.endorsementsForSelectedVehicle?.length > 0
&& (this.endorsementsForSelectedVehicle?.includes(endorsementOptions.PARKING_GUARD)
|| this.endorsementsForSelectedVehicle?.includes(endorsementOptions.EDUCATOR))) {
this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD_WITH_ENDORSEMENTS,
this.$route