diff --git a/app/chat/[id]/page.tsx b/app/chat/[id]/page.tsx index d7ad6d6..25d6c30 100644 --- a/app/chat/[id]/page.tsx +++ b/app/chat/[id]/page.tsx @@ -25,7 +25,7 @@ export async function generateMetadata({ const chat = await getChat(params.id, session.user.id) return { - title: chat?.title.slice(0, 50) ?? 'Chat' + title: chat?.title.toString().slice(0, 50) ?? 'Chat' } }