diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index a9cf1bd53..d317c0f6d 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -286,9 +286,11 @@ export default { } } else if (carsFound.length > 1) { // if multiple cars were found - if (carsFound.find(car => car.vehicle.carId === carEntered.carId)) { + const matchingCars = carsFound.find(car => car.vehicle.carId === carEntered.carId); + if (matchingCars) { // and one of them matches the car id entered this.$refs.loadingModal.showModal(); + this.updateVehicleInfo(matchingCars.vin, matchingCars.vehicle); navigateAfterSaveToHeritageFunnel(this.$route); } else { // and there is no match, navigate to "address-vehicles" page