From d25ac707b3e0dfb399a5a62e3af09ec8958e6e88 Mon Sep 17 00:00:00 2001 From: FrankRua Date: Tue, 19 Apr 2022 10:45:11 -0400 Subject: [PATCH] Change back button logic --- src/layouts/vin-lookup/vin-lookup.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index b50b180c0..718e20cf5 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -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);