From 2ea7a8d701291e537e3ce5c9d01cd5ccb1ed6b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Wahlberg?= Date: Fri, 4 Dec 2020 11:47:42 +0100 Subject: [PATCH] Updated class changes in TrafficEntry --- src/components/TrafficEntry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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