Skip to content

Commit

Permalink
feat: show only city for carpool origin/dest
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Feb 3, 2025
1 parent c73d205 commit 4a2d2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/component/Itinerary.Carpool.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ const Itinerary = (
}
const firstDepartureLeg = data.legs.find(isTransitLeg);
const { stoptimes } = firstDepartureLeg.trip;
const origin = stoptimes[0].stop.name;
const origin = stoptimes[0].stop.name.split(',')[0];
const boarding = firstDepartureLeg.from.name;
const alighting = firstDepartureLeg.to.name;
const agencyName = firstDepartureLeg.route.agency.name;
const routeUrl = firstDepartureLeg.route.url;
const destination = stoptimes[stoptimes.length - 1].stop.name;
const destination = stoptimes[stoptimes.length - 1].stop.name.split(',')[0];

const ariaLabelMessage = intl.formatMessage(
{
Expand Down

0 comments on commit 4a2d2fe

Please sign in to comment.