Describe the bug
When a city name is given as input, its showing the results but when we are clicking on the search button without giving any city name as input its just showing city as undefined but the temperature, humidity and wind speed information is just same as the previous city.
To Reproduce
Steps to reproduce the behavior:
Keep the searchbar empty.
Click on search button.
it will show the information of the previous city you have searched for.
Expected behavior
it should clear all the data and display an error or just update all the information to 0 or null.
Desktop (please complete the following information):
Describe the bug When a city name is given as input, its showing the results but when we are clicking on the search button without giving any city name as input its just showing city as undefined but the temperature, humidity and wind speed information is just same as the previous city.
To Reproduce Steps to reproduce the behavior:
Expected behavior it should clear all the data and display an error or just update all the information to 0 or null.
Desktop (please complete the following information):