Naprawa błędu z rozkładami

This commit is contained in:
2021-10-14 20:23:19 +02:00
parent e51b159acc
commit 9cb6857806
+1 -1
View File
@@ -386,7 +386,7 @@ export const store = createStore<State>({
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;