Skip to content

Commit

Permalink
hotfix: temp remove redirect #283
Browse files Browse the repository at this point in the history
  • Loading branch information
srizvi committed Apr 27, 2024
1 parent 8895cf9 commit 8031b5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/mai-sc/src/app/(chat)/chat/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8031b5e

Please sign in to comment.