From d42096efed454f7ad3fd29f1de6471bca3814c0e Mon Sep 17 00:00:00 2001 From: qiuchenfan <2035024011@qq.com> Date: Mon, 17 Nov 2025 19:36:05 +0800 Subject: [PATCH] 1115 --- app/components/WeatherSearchForm.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 +