From 307be23e56dc067216302366c4cdeb0f56103b78 Mon Sep 17 00:00:00 2001 From: Wind-Explorer <66894537+Wind-Explorer@users.noreply.github.com> Date: Sat, 10 Aug 2024 19:46:23 +0800 Subject: [PATCH] fixed web request loop bug --- client/src/pages/HomePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/HomePage.tsx b/client/src/pages/HomePage.tsx index 1bf4b39..466ec3f 100644 --- a/client/src/pages/HomePage.tsx +++ b/client/src/pages/HomePage.tsx @@ -34,7 +34,7 @@ export default function HomePage() { } catch (error) { console.error("Failed to fetch events:", error); } - }); + }, []); return (