1
0
Fork 0

fix: skip sessions if no permission

fix-1
Paul Makles 2023-08-05 21:50:11 +01:00
parent bae34d02ea
commit 12ee0001f9
No known key found for this signature in database
GPG Key ID: 5059F398521BB0F6
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default async function User({
if (!account) return notFound();
const user = await fetchUserById(params.id);
const sessions = await fetchSessionsByAccount(params.id);
const sessions = await fetchSessionsByAccount(params.id).catch(() => []);
return (
<div className="flex flex-col gap-2">