Skip to content

Commit

Permalink
fix: missing vehicle icons in stop page
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Jan 15, 2025
1 parent 5eff78b commit 818a6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/component/DepartureListContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class DepartureListContainer extends Component {
if (this.context.config.showVehiclesOnStopPage && this.props.isStopPage) {
const departures = asDepartures(this.props.stoptimes)
.filter(departure => !(this.props.isTerminal && departure.isArrival))
.filter(departure => this.props.currentTime < departure.stoptime);
.filter(departure => this.props.currentTime < departure.time);
this.startClient(departures);
}
}
Expand All @@ -126,7 +126,7 @@ class DepartureListContainer extends Component {
if (this.context.config.showVehiclesOnStopPage && this.props.isStopPage) {
const departures = asDepartures(this.props.stoptimes)
.filter(departure => !(this.props.isTerminal && departure.isArrival))
.filter(departure => this.props.currentTime < departure.stoptime)
.filter(departure => this.props.currentTime < departure.time)
.filter(departure => departure.realtime);

this.updateClient(departures);
Expand Down

0 comments on commit 818a6b9

Please sign in to comment.