diff --git a/app/components/WeatherSearchForm.tsx b/app/components/WeatherSearchForm.tsx index ab0ac03..f3e9902 100644 --- a/app/components/WeatherSearchForm.tsx +++ b/app/components/WeatherSearchForm.tsx @@ -16,7 +16,8 @@ export function WeatherSearchForm() { setCity(e.target.value); if (inputError) { setInputError(''); - } + }; + } const handleFormSubmit = async (e: FormEvent) => { e.preventDefault(); @@ -36,6 +37,7 @@ export function WeatherSearchForm() { return; } await searchWeather(trimmedCity); + } return (
@@ -94,5 +96,4 @@ export function WeatherSearchForm() { ) } -} -} \ No newline at end of file +