Merge pull request #449 from Safelite/feature/CSR-583

Feature/csr 583
This commit is contained in:
katieoh-safelite 2022-05-16 12:38:31 -04:00 committed by GitHub
commit 8a6790cd87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 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(matchingCar.vin, matchingCar.vehicle);
navigateAfterSaveToHeritageFunnel(this.$route);
} else {
// and there is no match, navigate to "address-vehicles" page