diff --git a/src/routes/moderation/+page.ts b/src/routes/moderation/+page.ts index 751efe78..1cf9d67b 100644 --- a/src/routes/moderation/+page.ts +++ b/src/routes/moderation/+page.ts @@ -30,7 +30,7 @@ export async function load({ url, fetch }) { community_id: community, } - const admin = profile.current?.user ? isAdmin(profile!.data.user!) : false + const admin = profile.current?.user ? isAdmin(profile!.current.user!) : false const [posts, comments, messages] = await Promise.all([ client.listPostReports({