diff --git a/src/routes/pubnix/+page.server.ts b/src/routes/pubnix/+page.server.ts index 1c33249..f48f33c 100644 --- a/src/routes/pubnix/+page.server.ts +++ b/src/routes/pubnix/+page.server.ts @@ -9,7 +9,6 @@ export const load = (async () => { return { users: get(pubnixUsers), - onlineUserCount: get(pubnixUsers).length, ...meta } }) satisfies PageServerLoad; diff --git a/src/routes/pubnix/+page.svelte b/src/routes/pubnix/+page.svelte index 516dc41..b2668bc 100644 --- a/src/routes/pubnix/+page.svelte +++ b/src/routes/pubnix/+page.svelte @@ -37,7 +37,7 @@ {#if !data.users.error} {#if data.users.users.some(isOnline)} -
There are {onlineUserCount} users online out of {userCount} users.
+There are {onlineUserCount} users online out of {userCount} users.
There are {userCount} users on the pubnix.
+There are {data.users.users.length} users on the pubnix.