Skip to content

Commit

Permalink
fix: rename crazy prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Jan 15, 2025
1 parent 818a6b9 commit 53dcfd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/component/DepartureListContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ class DepartureListContainer extends Component {
infiniteScroll: PropTypes.bool,
className: PropTypes.string,
isTerminal: PropTypes.bool,
isStopPage: PropTypes.bool,
showVehicles: PropTypes.bool,
};

static defaultProps = {
limit: undefined,
infiniteScroll: false,
className: undefined,
isTerminal: false,
isStopPage: false,
showVehicles: false,
mode: 'BUS',
};

Expand All @@ -114,7 +114,7 @@ class DepartureListContainer extends Component {
}
}, 100);
}
if (this.context.config.showVehiclesOnStopPage && this.props.isStopPage) {
if (this.context.config.showVehiclesOnStopPage && this.props.showVehicles) {
const departures = asDepartures(this.props.stoptimes)
.filter(departure => !(this.props.isTerminal && departure.isArrival))
.filter(departure => this.props.currentTime < departure.time);
Expand All @@ -123,7 +123,7 @@ class DepartureListContainer extends Component {
}

componentDidUpdate() {
if (this.context.config.showVehiclesOnStopPage && this.props.isStopPage) {
if (this.context.config.showVehiclesOnStopPage && this.props.showVehicles) {
const departures = asDepartures(this.props.stoptimes)
.filter(departure => !(this.props.isTerminal && departure.isArrival))
.filter(departure => this.props.currentTime < departure.time)
Expand All @@ -134,7 +134,7 @@ class DepartureListContainer extends Component {
}

componentWillUnmount() {
if (this.context.config.showVehiclesOnStopPage && this.props.isStopPage) {
if (this.context.config.showVehiclesOnStopPage && this.props.showVehicles) {
const { client } = this.context.getStore('RealTimeInformationStore');
if (client) {
this.context.executeAction(stopRealTimeClient, client);
Expand Down
2 changes: 1 addition & 1 deletion app/component/stop/StopPageContentContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class StopPageContent extends React.Component {
className="stop-page momentum-scroll"
infiniteScroll
currentTime={this.props.currentTime}
isStopPage
showVehicles
/>
</div>
</ScrollableWrapper>
Expand Down

0 comments on commit 53dcfd5

Please sign in to comment.