From b4ae1327b51887cf031f7900d7258bc81f4e8e99 Mon Sep 17 00:00:00 2001 From: Allen Zhou <46854522+allenzhou101@users.noreply.github.com> Date: Tue, 4 Feb 2025 15:00:14 -0800 Subject: [PATCH] Update useConnection.ts --- client/src/lib/hooks/useConnection.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/src/lib/hooks/useConnection.ts b/client/src/lib/hooks/useConnection.ts index cd90d7f..0e843b8 100644 --- a/client/src/lib/hooks/useConnection.ts +++ b/client/src/lib/hooks/useConnection.ts @@ -225,12 +225,6 @@ export function useConnection({ if (shouldRetry) { return connect(undefined, retryCount + 1); } - - if (error instanceof SseError && error.code === 401) { - // Don't set error state if we're about to redirect for auth - return; - } - setConnectionStatus("error"); return; }