From d947bc55b7c0d568799bf5a1f9b27a984de9b848 Mon Sep 17 00:00:00 2001 From: Finn Nils Gedrath Date: Wed, 20 Sep 2023 16:56:00 +0200 Subject: [PATCH] fix: show correct start point to enter (#64) --- app/views/liveView/Main.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/liveView/Main.svelte b/app/views/liveView/Main.svelte index 5729887..f256d44 100644 --- a/app/views/liveView/Main.svelte +++ b/app/views/liveView/Main.svelte @@ -202,14 +202,13 @@ currentSection.actions[$liveJourney.currentAction].instruction; } else if (currentSection.intermediateStops) { let id = $liveJourney.currentIntermediateStop; - let stop = currentSection.intermediateStops[id]; if (currentSection.intermediateStops.length === 0) { currentSupportBoxText = `Steige bei ${currentSection.departure.place.name} in die ${currentSection.transport.name} Richtung ${currentSection.transport.headsign} ein und steige bei ${currentSection.arrival.place.name} wieder aus.`; } else { switch (id) { case 0: - currentSupportBoxText = `Steige bei ${stop.departure.place.name} in die ${currentSection.transport.name} Richtung ${currentSection.transport.headsign} ein.`; + currentSupportBoxText = `Steige bei ${currentSection.departure.place.name} in die ${currentSection.transport.name} Richtung ${currentSection.transport.headsign} ein.`; break; case currentSection.intermediateStops.length - 1: currentSupportBoxText = `Gehe zum Ausgang und steige bei ${currentSection.arrival.place.name} aus.`; @@ -220,7 +219,7 @@ } } } else { - currentSupportBoxText = `Du musst von {currentSection.departure.place.name} nach {currentSection.arrival.place.name}`; + currentSupportBoxText = `Du musst von ${currentSection.departure.place.name} nach ${currentSection.arrival.place.name}`; } }