Fix sentry dsn on client (#882)

This commit is contained in:
Sergey Mankovsky
2026-02-25 23:34:17 +01:00
committed by GitHub
parent 25bcdb16a8
commit f428b9e3f2
3 changed files with 13 additions and 4 deletions

View File

@@ -346,9 +346,10 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
let intentionalClose = false;
const connect = () => {
const subprotocols = auth.accessToken
? ["bearer", auth.accessToken]
: undefined;
const subprotocols =
auth.status === "authenticated" && auth.accessToken
? ["bearer", auth.accessToken]
: undefined;
ws = new WebSocket(url, subprotocols);
ws.onopen = () => {