only route to endorsements page if Educator/Parking Guard endorsement
This commit is contained in:
parent
97936ee0bd
commit
7c6e4c3eee
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue