RadhiyaJabed / Weather-App-API-website

weather forecast website using the openweathermap api
0 stars 0 forks source link

Case handling for an empty search request #8

Closed RadhiyaJabed closed 2 years ago

RadhiyaJabed commented 2 years ago

I need to handle for when a user presses enter and there is no input given. For some reason if gives the weather for the location Xylotymbou, which is located somewhere in Cyprus.

I need to identify that the search box is empty, then send an alert about this to the user to enter an actual location. Otherwise if the box isnt empty, call the function to search for the data.

RadhiyaJabed commented 2 years ago

Fixed.