Skip to content

Commit b0514bc

Browse files
committed
fix: redirect to home instead of session on error
1 parent b4056be commit b0514bc

File tree

1 file changed

+1
-1
lines changed
  • apps/client/src/routes/session/$sessionId

1 file changed

+1
-1
lines changed

apps/client/src/routes/session/$sessionId/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Route = createFileRoute('/session/$sessionId/')({
5555
chats.reverse().forEach(addChatting);
5656
} catch (e) {
5757
console.error(e);
58-
throw redirect({ to: '/session' });
58+
throw redirect({ to: '/' });
5959
}
6060
},
6161
});

0 commit comments

Comments
 (0)