Change back button logic

This commit is contained in:
FrankRua 2022-04-19 10:45:11 -04:00
parent 7a6c87dff7
commit d25ac707b3

View file

@ -177,7 +177,9 @@ export default {
store.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
},
backButtonAction() {
this.$router.navigate(this.navigationScenarios.CLICKED_BACK, this.$route);
if(this.$store.getters.vehicle.vin){
this.$router.navigate(this.navigationScenarios.CLICKED_BACK_WITH_VIN, this.$route);
}
},
async forwardButtonAction() {
const zipValidation = await this.validateZip(this.zip);