Reload after restart to the baseUrl

This commit is contained in:
Nicolas Mowen 2024-06-13 15:07:15 -06:00
parent ef365665de
commit 90fba2ab70

View File

@ -67,6 +67,7 @@ import {
} from "../ui/dialog"; } from "../ui/dialog";
import { TooltipPortal } from "@radix-ui/react-tooltip"; import { TooltipPortal } from "@radix-ui/react-tooltip";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { baseUrl } from "@/api/baseUrl";
type GeneralSettingsProps = { type GeneralSettingsProps = {
className?: string; className?: string;
@ -95,12 +96,12 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
useEffect(() => { useEffect(() => {
if (countdown === 0) { if (countdown === 0) {
window.location.href = "/"; window.location.href = baseUrl;
} }
}, [countdown]); }, [countdown]);
const handleForceReload = () => { const handleForceReload = () => {
window.location.href = "/"; window.location.href = baseUrl;
}; };
const Container = isDesktop ? DropdownMenu : Drawer; const Container = isDesktop ? DropdownMenu : Drawer;