Aktualizacja listy scenerii

This commit is contained in:
2021-10-29 15:20:58 +02:00
parent b510602031
commit 00fb2359bd
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -380,13 +380,14 @@ export const store = createStore<State>({
const stopInfoIndex = timetable.followingStops.findIndex(stop => {
const stopName = stop.stopNameRAW.toLowerCase();
if (stationName === stopName) return true;
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 (station.checkpoints && station.checkpoints.length > 0 && station.checkpoints.some(cp => cp.checkpointName.includes(stop.stopNameRAW))) return true;
if (station.checkpoints && station.checkpoints.length > 0 && station.checkpoints.some(cp => cp.checkpointName.toLowerCase().includes(stop.stopNameRAW.toLowerCase()))) return true;
// if (station.stops && station.stops.includes(stop.stopNameRAW)) return true;