diff --git a/__tests__/components/viewers/__snapshots__/nearby-view.js.snap b/__tests__/components/viewers/__snapshots__/nearby-view.js.snap index dd1dcddc1..a3a1b7bc5 100644 --- a/__tests__/components/viewers/__snapshots__/nearby-view.js.snap +++ b/__tests__/components/viewers/__snapshots__/nearby-view.js.snap @@ -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", } } > @@ -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", } } > diff --git a/lib/components/viewers/pattern-row.tsx b/lib/components/viewers/pattern-row.tsx index 4f87a8c7a..e4bbef83c 100644 --- a/lib/components/viewers/pattern-row.tsx +++ b/lib/components/viewers/pattern-row.tsx @@ -113,6 +113,7 @@ const PatternRow = ({ id="components.NearbyView.headsign" values={{ destination: + stopTimes?.[0]?.headsign || extractHeadsignFromPattern(pattern) || (pattern.route.longName !== routeName && pattern.route.longName)