From 8031b5ed17cc8d4e55362b39d5459e5fa57af9d4 Mon Sep 17 00:00:00 2001 From: Sam Rizvi Date: Sat, 27 Apr 2024 06:01:45 -0700 Subject: [PATCH] hotfix: temp remove redirect #283 --- apps/mai-sc/src/app/(chat)/chat/[id]/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mai-sc/src/app/(chat)/chat/[id]/page.tsx b/apps/mai-sc/src/app/(chat)/chat/[id]/page.tsx index ff06dcd71..de492b3ab 100644 --- a/apps/mai-sc/src/app/(chat)/chat/[id]/page.tsx +++ b/apps/mai-sc/src/app/(chat)/chat/[id]/page.tsx @@ -28,9 +28,9 @@ export default async function ChatPage({ params }: ChatPageProps) { const userId = session.user.id; const chat = await getChat(params.id, userId); - if (!chat) { - redirect('/chat'); - } + // if (!chat) { + // redirect('/chat'); + // } if (chat?.userId !== session?.user?.id) { notFound();