Skip to content

Commit

Permalink
Reload after restart to the baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jun 13, 2024
1 parent ef36566 commit 90fba2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/components/menu/GeneralSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import {
} from "../ui/dialog";
import { TooltipPortal } from "@radix-ui/react-tooltip";
import { cn } from "@/lib/utils";
import { baseUrl } from "@/api/baseUrl";

type GeneralSettingsProps = {
className?: string;
Expand Down Expand Up @@ -95,12 +96,12 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {

useEffect(() => {
if (countdown === 0) {
window.location.href = "/";
window.location.href = baseUrl;
}
}, [countdown]);

const handleForceReload = () => {
window.location.href = "/";
window.location.href = baseUrl;
};

const Container = isDesktop ? DropdownMenu : Drawer;
Expand Down

0 comments on commit 90fba2a

Please sign in to comment.