commit
8a6790cd87
1 changed files with 3 additions and 1 deletions
|
|
@ -286,9 +286,11 @@ export default {
|
||||||
}
|
}
|
||||||
} else if (carsFound.length > 1) {
|
} else if (carsFound.length > 1) {
|
||||||
// if multiple cars were found
|
// if multiple cars were found
|
||||||
if (carsFound.find(car => car.vehicle.carId === carEntered.carId)) {
|
const matchingCar = carsFound.find(car => car.vehicle.carId === carEntered.carId);
|
||||||
|
if (matchingCar) {
|
||||||
// and one of them matches the car id entered
|
// and one of them matches the car id entered
|
||||||
this.$refs.loadingModal.showModal();
|
this.$refs.loadingModal.showModal();
|
||||||
|
this.updateVehicleInfo(matchingCar.vin, matchingCar.vehicle);
|
||||||
navigateAfterSaveToHeritageFunnel(this.$route);
|
navigateAfterSaveToHeritageFunnel(this.$route);
|
||||||
} else {
|
} else {
|
||||||
// and there is no match, navigate to "address-vehicles" page
|
// and there is no match, navigate to "address-vehicles" page
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue