From 9cb685780609ed214f584302feeb7deca11a9c03 Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 14 Oct 2021 20:23:19 +0200 Subject: [PATCH] =?UTF-8?q?Naprawa=20b=C5=82=C4=99du=20z=20rozk=C5=82adami?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.ts b/src/store/index.ts index 51cf406..c7d57cd 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -386,7 +386,7 @@ export const store = createStore({ if (stationName.includes(stopName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) return true; if (stopName.includes("podg.") && stopName.split(", podg.")[0] && stationName.includes(stopName.split(", podg.")[0])) return true; - if (station.checkpoints && station.checkpoints.length > 0 && station.checkpoints[0].checkpointName) + if (station.checkpoints.length > 0 && station.checkpoints.some(cp => cp.checkpointName.includes(stop.stopNameRAW))) return true; // if (station.stops && station.stops.includes(stop.stopNameRAW)) return true;