Skip to content

Commit

Permalink
Merge pull request #1301 from opentripplanner/use-stoptime-headsigns
Browse files Browse the repository at this point in the history
nearby: use stoptime headsigns if applicable
  • Loading branch information
miles-grant-ibigroup authored Nov 14, 2024
2 parents 2f6a865 + 8482e98 commit c770bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30968,7 +30968,7 @@ exports[`components > viewers > nearby view renders proper scooter dates 1`] = `
id="components.NearbyView.headsign"
values={
Object {
"destination": "Sand Point East Green Lake",
"destination": "Sand Point",
}
}
>
Expand Down Expand Up @@ -59945,7 +59945,7 @@ exports[`components > viewers > nearby view renders proper scooter dates 1`] = `
id="components.NearbyView.headsign"
values={
Object {
"destination": "Kenmore P&R Roosevelt Station",
"destination": "Kenmore P&R",
}
}
>
Expand Down
1 change: 1 addition & 0 deletions lib/components/viewers/pattern-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const PatternRow = ({
id="components.NearbyView.headsign"
values={{
destination:
stopTimes?.[0]?.headsign ||
extractHeadsignFromPattern(pattern) ||
(pattern.route.longName !== routeName &&
pattern.route.longName)
Expand Down

0 comments on commit c770bbc

Please sign in to comment.