Merge pull request #2147 from Safelite/feature/CSR-2407

CSR-2407 dup check
This commit is contained in:
CarlNation 2024-11-24 20:13:48 -05:00 committed by GitHub
commit 89edff3740
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -436,7 +436,6 @@ export default {
policy.policyNumber !== ""; policy.policyNumber !== "";
const skipVin = await skipVinLookup(); const skipVin = await skipVinLookup();
if (vehicleChangedDuringPolicyLookupInHeritage) { if (vehicleChangedDuringPolicyLookupInHeritage) {
if (skipVin) { if (skipVin) {
this.$router.navigateWithSaving( this.$router.navigateWithSaving(
@ -455,6 +454,7 @@ export default {
{ [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false } { [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false }
); );
} else { } else {
if (store.getters.vehicle.vin) {
this.$router.navigateWithSaving( this.$router.navigateWithSaving(
this.navigationScenarios this.navigationScenarios
.CLICKED_FORWARD_WITH_REPLACE_AND_VERIFIED_INSURANCE, .CLICKED_FORWARD_WITH_REPLACE_AND_VERIFIED_INSURANCE,
@ -462,6 +462,14 @@ export default {
{}, {},
{ [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false } { [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false }
); );
} else {
this.$router.navigateWithSaving(
this.navigationScenarios.CLICKED_FORWARD_WITHOUT_VIN,
this.$route,
{},
{ [routerParams.DISPLAY_VEHICLE_CHANGE_ALERT]: false }
);
}
} }
} }
} }