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