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) ? (
@@ -28,7 +28,9 @@ export default function Advisories(props) { in effect -

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:

+ }
diff --git a/src/frontend/src/pages/CamerasListPage.js b/src/frontend/src/pages/CamerasListPage.js index a1db10a3..cb1fc6fd 100644 --- a/src/frontend/src/pages/CamerasListPage.js +++ b/src/frontend/src/pages/CamerasListPage.js @@ -212,7 +212,7 @@ export default function CamerasListPage() { - +
diff --git a/src/frontend/src/pages/EventsListPage.js b/src/frontend/src/pages/EventsListPage.js index 6810a473..d640cf45 100644 --- a/src/frontend/src/pages/EventsListPage.js +++ b/src/frontend/src/pages/EventsListPage.js @@ -312,7 +312,7 @@ export default function EventsListPage() { - +
{ largeScreen &&