Updated cookie impl
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user