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