From 61494424887c2878e43f11431bed26a7121c9541 Mon Sep 17 00:00:00 2001 From: Claas Date: Fri, 21 Jun 2024 23:29:32 +0200 Subject: [PATCH] Fix missing walk --- README.md | 2 +- src/routes/journey.tsx | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b122ad1..0a81ae5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ # Todo - ~~Add walk connection UI~~ -- Fix bonn to bonn missing walk +- ~~Fix bonn to bonn missing walk~~ - make destination/start for next connecion stick as it doesn't change - Add delay information - Add fake details view for stops diff --git a/src/routes/journey.tsx b/src/routes/journey.tsx index 437bde7..191022f 100644 --- a/src/routes/journey.tsx +++ b/src/routes/journey.tsx @@ -447,7 +447,10 @@ const RB_MESSE_1633: Connection2 = { ], }; -function withChange(connection: Transport, change: string): Connection2 { +function withChange( + connection: Transport, + change: string | undefined, +): Connection2 { return { ...connection, time: { @@ -497,7 +500,11 @@ const connections2: Connection2[] = [ }, }, withChange(STR_NIEHL_1622, "15min"), - withChange(RE_WESEL_1628, "21min"), + { + ...WALK_BONN_HBF, + timeAvailable: "21min", + changes: [withChange(RE_WESEL_1628, undefined)], + }, ], }, { -- 2.51.2