diff --git a/src/frontend/src/Components/advisories/Advisories.js b/src/frontend/src/Components/advisories/Advisories.js index b3b6030d..66f9c809 100644 --- a/src/frontend/src/Components/advisories/Advisories.js +++ b/src/frontend/src/Components/advisories/Advisories.js @@ -14,7 +14,7 @@ import AdvisoriesList from './AdvisoriesList'; import './Advisories.scss'; export default function Advisories(props) { - const { advisories } = props; + const { advisories, selectedRoute } = props; return (advisories && !!advisories.length) ? (
The following advisory affects a portion of the route you’ve chosen:
+ {selectedRoute && selectedRoute.routeFound && Object.keys(selectedRoute).length !== 0 && +The following advisory affects a portion of the route you’ve chosen:
+ }