CSR-583 Rename variable
This commit is contained in:
parent
e401129dcf
commit
3ffd41ff0e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue