Skip to content

Commit

Permalink
fix: Fixed a build time error
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Jan 22, 2024
1 parent 1bd30b4 commit 405c0f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/pages/home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useLayoutEffect, useState } from "react";
import { router } from "next/client";
import dynamic from "next/dynamic";
import Link from "next/link";
import { useRouter } from "next/router";
Expand Down Expand Up @@ -289,6 +288,8 @@ const InternalHome = observer(() => {
activeCity$.coord.lon.get(),
];

const router = useRouter();

// Prevent a weather forecast for the preset active city from being displayed
useLayoutEffect(() => {
if (activeCity$.id.get() === 0 && activeCity$.name.get() === "") {
Expand Down

1 comment on commit 405c0f1

@vercel
Copy link

@vercel vercel bot commented on 405c0f1 Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.