From daea8361ee612f8cdd0723e24b74d07afd564170 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 14 Jun 2022 08:41:57 -0700 Subject: Fix weather overlay --- modern/src/map/overlay/useMapOverlays.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modern') diff --git a/modern/src/map/overlay/useMapOverlays.js b/modern/src/map/overlay/useMapOverlays.js index d82397d6..e6311202 100644 --- a/modern/src/map/overlay/useMapOverlays.js +++ b/modern/src/map/overlay/useMapOverlays.js @@ -30,35 +30,35 @@ export default () => { { id: 'openWeatherClouds', title: t('mapOpenWeatherClouds'), - source: sourceOpenWeather('clouds_new', 'openWeatherKey'), + source: sourceOpenWeather('clouds_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherPrecipitation', title: t('mapOpenWeatherPrecipitation'), - source: sourceOpenWeather('precipitation_new', 'openWeatherKey'), + source: sourceOpenWeather('precipitation_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherPressure', title: t('mapOpenWeatherPressure'), - source: sourceOpenWeather('pressure_new', 'openWeatherKey'), + source: sourceOpenWeather('pressure_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherWind', title: t('mapOpenWeatherWind'), - source: sourceOpenWeather('wind_new', 'openWeatherKey'), + source: sourceOpenWeather('wind_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, { id: 'openWeatherTemperature', title: t('mapOpenWeatherTemperature'), - source: sourceOpenWeather('temp_new', 'openWeatherKey'), + source: sourceOpenWeather('temp_new', openWeatherKey), available: !!openWeatherKey, attribute: 'openWeatherKey', }, -- cgit v1.2.3