fix: fix build

This commit is contained in:
Henry
2025-05-05 15:19:09 +01:00
parent b6daaa41de
commit 8ae7eeb1fe

View File

@@ -1,7 +1,6 @@
import Cookies from "js-cookie";
import PatternedBackground from "~/components/PatternedBackground";
import { env } from "~/env";
import { useTheme } from "~/providers/theme";
import { api } from "~/utils/api";
import Footer from "./Footer";
@@ -11,11 +10,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
const theme = useTheme();
const token =
typeof window !== "undefined"
? Cookies.get('kan.session_token')
: null;
const getSession = async () => {
typeof window !== "undefined" ? Cookies.get("kan.session_token") : null;
const { data } = api.user.getUser.useQuery(undefined, {
enabled: !!token,