fix filtering statement within getEtaForShuttleAndStopId

This commit is contained in:
2025-01-09 13:48:46 -08:00
parent e74eadc86c
commit c4ee93d3d1

View File

@@ -83,7 +83,7 @@ export class ApiBasedRepository implements GetterRepository {
if (this.cache?.etasForStopId && this.cache.etasForStopId[stopId]) { if (this.cache?.etasForStopId && this.cache.etasForStopId[stopId]) {
const etas = this.cache.etasForStopId[stopId]; const etas = this.cache.etasForStopId[stopId];
const foundEta = etas.find((eta) => eta.stopId === stopId); const foundEta = etas.find((eta) => eta.shuttleId === shuttleId);
if (foundEta) { if (foundEta) {
return foundEta; return foundEta;
} }