From 3310917fef00a2e87abc5fb7c311abb045c7ec06 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 3 Mar 2024 16:58:49 +0100 Subject: [PATCH] feat: unknown if error --- src/app/s/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/s/[id]/page.tsx b/src/app/s/[id]/page.tsx index 7018de5..db07a29 100644 --- a/src/app/s/[id]/page.tsx +++ b/src/app/s/[id]/page.tsx @@ -20,7 +20,7 @@ export default async function Page({ params }: { params: { id: string } }) { redirect('/s-notfound') } - const user = await clerkClient.users.getUser(query.authorId) + const user = await clerkClient.users.getUser(query.authorId).catch(() => { return { username: 'Unknown' } }) return (