mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-04-26 00:12:48 -05:00
Fix stats page params not awaited
This commit is contained in:
parent
f0875bc929
commit
41ef04ea41
|
|
@ -4,7 +4,12 @@ import HackStatsClient from "@/components/Hack/Stats/HackStatsClient";
|
||||||
import { getDownloadsSeriesAll, getHackInsights } from "@/app/dashboard/actions";
|
import { getDownloadsSeriesAll, getHackInsights } from "@/app/dashboard/actions";
|
||||||
import { checkEditPermission } from "@/utils/hack";
|
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 supa = await createClient();
|
||||||
const { data: userResp } = await supa.auth.getUser();
|
const { data: userResp } = await supa.auth.getUser();
|
||||||
const user = userResp.user;
|
const user = userResp.user;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user