Fixed navigation bug for when multiple vehicles are found and one of them matches the vehicle entered

This commit is contained in:
Leah Schumann 2022-05-12 10:34:39 -04:00
parent 8677d0e2ef
commit 7e9a719f8a

View file

@ -283,7 +283,7 @@ export default {
}
} else if (carsFound.length > 1) {
// if multiple cars were found
if (carsFound.find(car => car.carId === carEntered.carId)) {
if (carsFound.find(car => car.vehicle.carId === carEntered.carId)) {
// and one of them matches the car id entered
this.$refs.loadingModal.showModal();
navigateAfterSaveToHeritageFunnel(this.$route);