Skip to content

Commit

Permalink
Merge pull request #4850 from HSLdevcom/DT-6027
Browse files Browse the repository at this point in the history
DT-6027 Stops near you view should display departure time
  • Loading branch information
vesameskanen authored Aug 17, 2023
2 parents b5b1d80 + 8f672ce commit 1c4dd57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/component/StopNearYouContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const containerComponent = createRefetchContainer(
startTime: $startTime
omitNonPickups: $omitNonPickups
) {
realtimeArrival
realtimeDeparture
realtime
realtimeState
serviceDay
Expand Down Expand Up @@ -85,7 +85,7 @@ const containerComponent = createRefetchContainer(
stop {
platformCode
}
realtimeArrival
realtimeDeparture
realtime
serviceDay
headsign
Expand Down
6 changes: 4 additions & 2 deletions app/component/StopNearYouDepartureRowContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const StopNearYouDepartureRowContainer = ({ stopTimes, mode, ...props }) => {
.slice()
.sort(
(a, b) =>
a.serviceDay + a.realtimeArrival - (b.serviceDay + b.realtimeArrival),
a.serviceDay +
a.realtimeDeparture -
(b.serviceDay + b.realtimeDeparture),
);
const departures = sortedStopTimes.map(row => {
const departureTime = row.serviceDay + row.realtimeArrival;
const departureTime = row.serviceDay + row.realtimeDeparture;
return (
<DepartureRow
key={uuid()}
Expand Down

0 comments on commit 1c4dd57

Please sign in to comment.