Skip to content

Commit

Permalink
Merge branch 'main' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Jan 29, 2024
2 parents a7c68da + 3e436b5 commit f50d33c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/displays/NewGTR/TrainService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ function getDestinationAsStrings(destination: IMyTrainService['destinations'][nu
const name = `${andText}${destination.name}`;
const via = destination.via || '';

if (!via) return [name];

const whole = `${name} ${via}`.trim();

if (whole.length <= DESTINATION_MAX_LENGTH) {
Expand All @@ -40,7 +42,6 @@ export default function TrainService({ ordinal, service, showAdditionalDetails =
);

const pages = getDestinationPages();

const etd = service.displayedDepartureTime();
const isCancelled = service.cancelled;

Expand Down

0 comments on commit f50d33c

Please sign in to comment.