Skip to content

Commit f0b1ebf

Browse files
committed
Fix redirect to course chat v1
1 parent 89061a7 commit f0b1ebf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/client/Router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const PreferenceRedirect = () => {
2424
const { user } = useCurrentUser()
2525
const { courseId } = useParams()
2626
const chatVersion = user?.preferences?.chatVersion ?? 1
27-
return <Navigate to={chatVersion === 1 ? '/v1' : '/v2' + (courseId ? `/${courseId}` : '')} replace />
27+
return <Navigate to={(chatVersion === 1 ? '/v1' : '/v2') + (courseId ? `/${courseId}` : '')} replace />
2828
}
2929

3030
const router = sentryCreateBrowserRouter(

src/client/components/Chat/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,6 @@ const Chat = () => {
313313
saveConsent,
314314
}
315315

316-
console.log('getCompletionsArgs', getCompletionsArgs)
317-
318316
// Retry the request if the server is stuck for WAIT_FOR_STREAM_TIMEOUT seconds
319317
setRetryTimeout(() => handleRetry(getCompletionsArgs, abortController), WAIT_FOR_STREAM_TIMEOUT)
320318

0 commit comments

Comments
 (0)