diff --git a/app/component/StopNearYouContainer.js b/app/component/StopNearYouContainer.js index 72c27131e0..8c80ede416 100644 --- a/app/component/StopNearYouContainer.js +++ b/app/component/StopNearYouContainer.js @@ -31,7 +31,7 @@ const containerComponent = createRefetchContainer( startTime: $startTime omitNonPickups: $omitNonPickups ) { - realtimeArrival + realtimeDeparture realtime realtimeState serviceDay @@ -85,7 +85,7 @@ const containerComponent = createRefetchContainer( stop { platformCode } - realtimeArrival + realtimeDeparture realtime serviceDay headsign diff --git a/app/component/StopNearYouDepartureRowContainer.js b/app/component/StopNearYouDepartureRowContainer.js index b975d758f9..05d3fe7939 100644 --- a/app/component/StopNearYouDepartureRowContainer.js +++ b/app/component/StopNearYouDepartureRowContainer.js @@ -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 (