Updated cookie impl

This commit is contained in:
2025-09-16 13:42:38 +02:00
parent 4417485c93
commit 6feb61a289
3 changed files with 16 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
import DisplayName from "@/components/player/displayname"
import { Card, CardContent } from "@/components/ui/card"
import { COOKIE_VALUES } from "@/data/general"
import { env } from "@/lib/env/server"
import { getGuild } from "@/lib/hypixel/api/guild"
import { getUuid } from "@/lib/hypixel/api/mojang"
@@ -74,7 +75,7 @@ async function SuspendedPage({ params }: Pick<PageProps<"/player/[ign]">, "param
const level = getExactLevel(player.networkExp)
const schema = z.array(z.string())
const { data: layout } = schema.safeParse(JSON.parse(c.get("stats-order")?.value ?? "null"))
const { data: layout } = schema.safeParse(JSON.parse(c.get(COOKIE_VALUES.statsOrder)?.value ?? "null"))
return (
<div className="flex flex-col items-center pb-5">