diff --git a/src/components/TrafficEntry.js b/src/components/TrafficEntry.js index 0e97297..c14144a 100644 --- a/src/components/TrafficEntry.js +++ b/src/components/TrafficEntry.js @@ -7,8 +7,8 @@ import warningIcon from '../img/warning.svg'; class TrafficEntry extends Component { render() { - let trafficInfo = this.props.departure.info; - let lineInterference = trafficInfo !== "" && trafficInfo !== null; + let trafficInfo = this.props.departure.trafficInfo; + let lineInterference = trafficInfo !== "" && trafficInfo !== null && trafficInfo !== undefined; return (
@@ -23,7 +23,7 @@ class TrafficEntry extends Component {
{this.props.departure.lineName} - {this.props.departure.destination} + {this.props.departure.finalStop}
{lineInterference &&

{trafficInfo} Visa mer