diff --git a/client/src/components/Settings/WeatherSettings/WeatherSettings.tsx b/client/src/components/Settings/WeatherSettings/WeatherSettings.tsx index a6819d8..4d0b813 100644 --- a/client/src/components/Settings/WeatherSettings/WeatherSettings.tsx +++ b/client/src/components/Settings/WeatherSettings/WeatherSettings.tsx @@ -42,10 +42,10 @@ export const WeatherSettings = (): JSX.Element => { e.preventDefault(); // Check for api key input - if ((formData.lat || formData.long) && !formData.WEATHER_API_KEY) { + if ((formData.lat || formData.long) && !formData.weather_enabled) { createNotification({ title: 'Warning', - message: 'API key is missing. Weather Module will NOT work', + message: 'You need to enable the weather module to use it', }); } @@ -97,25 +97,19 @@ export const WeatherSettings = (): JSX.Element => { return (