Skip to content

Commit

Permalink
Update src/SearchTrips/Trip.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Røsvik <[email protected]>
  • Loading branch information
binarybaba and rosvik authored Jan 5, 2025
1 parent f3390b6 commit ecf5c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchTrips/Trip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const buildAccessories = (trip: TripPattern, isDetailsVisible: boolean): Accesso
];
}
const accessories: Accessory[] = trip.legs
.filter((leg) => !(leg.mode === "foot" && leg.fromPlace.name === leg.toPlace.name))
.filter((leg) => !(leg.mode === "foot" && leg.fromPlace.id === leg.toPlace.id))
.map((leg) => ({
icon: getTransportIcon(leg.mode, leg.transportSubmode),
text: leg.line?.publicCode,
Expand Down

0 comments on commit ecf5c06

Please sign in to comment.