Skip to content

Commit

Permalink
feat: add submodes to rule variables for trip and departure details (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rosvik authored Dec 2, 2024
1 parent fbc962a commit 2ae226d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export const DepartureDetailsScreenComponent = ({
ticketingEnabled: enable_ticketing,
canSellTicketsForDeparture: canSellTicketsForDeparture,
mode: mode || null,
subMode: subMode || null,
fromZones:
fromQuay?.quay?.tariffZones.map((zone) => zone.id) || null,
toZones: toQuay?.quay?.tariffZones.map((zone) => zone.id) || null,
Expand Down
3 changes: 3 additions & 0 deletions src/travel-details-screens/components/Trip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ export const Trip: React.FC<TripProps> = ({
ticketingEnabled: enable_ticketing,
hasLegsWeCantSellTicketsFor: tripHasLegsWeCantSellTicketsFor,
modes: tripPattern.legs.map((l) => l.mode),
subModes: tripPattern.legs
.map((l) => l.transportSubmode)
.filter(isDefined),
withinZoneIds: containingZones,
}}
/>
Expand Down

0 comments on commit 2ae226d

Please sign in to comment.