feat: unknown if error

This commit is contained in:
2024-03-03 16:58:49 +01:00
parent 94c2449602
commit 3310917fef

View File

@@ -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 (
<div>
<div className='snippetDescription'>