From c4ee93d3d1745ac648e35b23d0a3489b1014e04f Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Thu, 9 Jan 2025 13:48:46 -0800 Subject: [PATCH] fix filtering statement within getEtaForShuttleAndStopId --- src/repositories/ApiBasedRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repositories/ApiBasedRepository.ts b/src/repositories/ApiBasedRepository.ts index f83f17c..8ad821f 100644 --- a/src/repositories/ApiBasedRepository.ts +++ b/src/repositories/ApiBasedRepository.ts @@ -83,7 +83,7 @@ export class ApiBasedRepository implements GetterRepository { if (this.cache?.etasForStopId && 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) { return foundEta; }