From 6919aeee0015720a795ca7d28e81b032d940c96b Mon Sep 17 00:00:00 2001 From: CarlNation Date: Sun, 24 Nov 2024 20:12:04 -0500 Subject: [PATCH] CSR-2407 dup check CSR-2407 dup check will return to nextgen from heritage possibly unverified without vin so send to estimate page instead of vin-lookup --- src/layouts/vehicle-damage/vehicle-damage.vue | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index 732e23ba9..7cce1c120 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -436,7 +436,6 @@ export default { policy.policyNumber !== ""; const skipVin = await skipVinLookup(); - if (vehicleChangedDuringPolicyLookupInHeritage) { if (skipVin) { this.$router.navigateWithSaving( @@ -455,13 +454,22 @@ export default { { [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false } ); } else { - this.$router.navigateWithSaving( - this.navigationScenarios - .CLICKED_FORWARD_WITH_REPLACE_AND_VERIFIED_INSURANCE, - this.$route, - {}, - { [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false } - ); + if (store.getters.vehicle.vin) { + this.$router.navigateWithSaving( + this.navigationScenarios + .CLICKED_FORWARD_WITH_REPLACE_AND_VERIFIED_INSURANCE, + this.$route, + {}, + { [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false } + ); + } else { + this.$router.navigateWithSaving( + this.navigationScenarios.CLICKED_FORWARD_WITHOUT_VIN, + this.$route, + {}, + { [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false } + ); + } } } }