INSR-7774: Skip vehicle-lookup if not windshield replacement

This commit is contained in:
Alex Humphries 2026-02-13 17:12:23 -05:00
parent 78ae497f33
commit e2f624b4b4

View file

@ -216,6 +216,13 @@ export default {
=== damageLocationsSelected.REPAIR
);
},
isWindshieldReplace() {
return (
this.isWindshieldDamageLocation
&& this.selectedWindshieldOptions.selectedWindshieldDamageType
=== damageLocationsSelected.REPLACE
);
},
isDriverSideReplace() {
if (!this.isSideDoorDamageLocation) return false;
@ -418,7 +425,7 @@ export default {
this.navigationScenarios.CLICKED_FORWARD_WITH_REPAIR,
this.$route
);
} else if (this.mainStore.order.vehicle.vin) {
} else if (this.mainStore.order.vehicle.vin || !this.isWindshieldReplace) {
// If vin already exists, navigate directly to vin-lookup
const partsOrQuestionsResponse = await this.getPartsOrQuestions();