From 3cb73d4c3a0e5e0a00adb65270875e59a57ad12c Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 14 Oct 2021 20:13:55 +0200 Subject: [PATCH] Poprawki --- src/store/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 509d4f0..51cf406 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -333,7 +333,7 @@ export const store = createStore({ statusTimestamp: -3, statusTimeString: "", stationTrains: [], - scheduledTrains: [], + scheduledTrains: [] }); return acc; @@ -385,10 +385,10 @@ export const store = createStore({ if (stopName.includes(stationName) && !stop.stopName.includes("po.") && !stop.stopName.includes("podg.")) return true; 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 (stationName) - // if (station.stops && station.stops.includes(stop.stopNameRAW)) return true; - if (station.checkpoints.length > 0 && station.checkpoints.some(cp => cp.checkpointName.includes(stop.stopNameRAW))) return true; + if (station.checkpoints && station.checkpoints.length > 0 && station.checkpoints[0].checkpointName) + + // if (station.stops && station.stops.includes(stop.stopNameRAW)) return true; return false; });