CSR-583 Rename variable

This commit is contained in:
Katie 2022-05-16 12:34:04 -04:00
parent e401129dcf
commit 3ffd41ff0e

View file

@ -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