Skip to content

Commit

Permalink
chore: Added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Jan 22, 2024
1 parent a62d841 commit 1bd30b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1bd30b4

Please sign in to comment.