From 1bd30b4b577d52020646efc09eb2cd055e3b1c6c Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Mon, 22 Jan 2024 18:28:18 +0100 Subject: [PATCH] chore: Added a comment --- apps/web/src/pages/home/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/pages/home/index.tsx b/apps/web/src/pages/home/index.tsx index a413f36c..392cc280 100644 --- a/apps/web/src/pages/home/index.tsx +++ b/apps/web/src/pages/home/index.tsx @@ -289,6 +289,7 @@ const InternalHome = observer(() => { activeCity$.coord.lon.get(), ]; + // Prevent a weather forecast for the preset active city from being displayed useLayoutEffect(() => { if (activeCity$.id.get() === 0 && activeCity$.name.get() === "") { void router.push("/search");