Fix stats page params not awaited

This commit is contained in:
Jared Schoeny 2026-01-16 13:43:40 -10:00
parent f0875bc929
commit 41ef04ea41

View File

@ -4,7 +4,12 @@ import HackStatsClient from "@/components/Hack/Stats/HackStatsClient";
import { getDownloadsSeriesAll, getHackInsights } from "@/app/dashboard/actions";
import { checkEditPermission } from "@/utils/hack";
export default async function HackStatsPage({ params: { slug } }: { params: { slug: string } }) {
interface HackStatsPageProps {
params: Promise<{ slug: string }>;
}
export default async function HackStatsPage({ params }: HackStatsPageProps) {
const { slug } = await params;
const supa = await createClient();
const { data: userResp } = await supa.auth.getUser();
const user = userResp.user;