diff --git a/src/frontend/src/Components/data/restStops.js b/src/frontend/src/Components/data/restStops.js index bd0c7da9d..0545942da 100644 --- a/src/frontend/src/Components/data/restStops.js +++ b/src/frontend/src/Components/data/restStops.js @@ -7,26 +7,24 @@ export function getRestStops(routePoints) { } export function isRestStopClosed(restStopProperties) { - if(restStopProperties === undefined){ + if (restStopProperties === undefined) { return false; } - const isOpenYearRound = restStopProperties.OPEN_YEAR_ROUND === "Yes"? true: false; - if(isOpenYearRound){ + const isOpenYearRound = restStopProperties.OPEN_YEAR_ROUND === "Yes"; + if (isOpenYearRound) { return false; - } - else{ + } else { const today = new Date(); const year = today.getFullYear(); const openDate = restStopProperties.OPEN_DATE; const closeDate = restStopProperties.CLOSE_DATE; - if(openDate && closeDate){ + if (openDate && closeDate) { const openDateY = new Date(year.toString() + "-" + openDate.toString()); const closeDateY = new Date(year.toString() + "-" + closeDate.toString()); const isInSeason = (today.getTime() > openDateY.getTime()) && (today.getTime() < closeDateY.getTime()); const isClosed = isInSeason? false: true; return isClosed; - } - else{ + } else { return true; } } diff --git a/src/frontend/src/Components/map/panels/mapPopup.js b/src/frontend/src/Components/map/panels/mapPopup.js index 9e6c4103a..cb7294976 100644 --- a/src/frontend/src/Components/map/panels/mapPopup.js +++ b/src/frontend/src/Components/map/panels/mapPopup.js @@ -332,7 +332,7 @@ export function getRegionalPopup(weatherFeature) {
Visibility
- {Math.round(conditions.visibility_value)} + {Math.round(conditions.visibility_value)} {conditions.visibility_units}
@@ -348,10 +348,10 @@ export function getRegionalPopup(weatherFeature) { { conditions.wind_speed_value === "calm" ? calm : - { Math.round(conditions.wind_speed_value) } + { Math.round(conditions.wind_speed_value) } { conditions.wind_speed_units } { conditions.wind_gust_value && ( - gusts +