From 1a6cf113c859f053a55e583d919c628bb7710ac3 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Tue, 3 Mar 2026 11:46:05 -0600 Subject: [PATCH] fix(lint): resolve prettier formatting in useChat.ts --- apps/web/src/hooks/useChat.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/web/src/hooks/useChat.ts b/apps/web/src/hooks/useChat.ts index c9fe796..b98ab03 100644 --- a/apps/web/src/hooks/useChat.ts +++ b/apps/web/src/hooks/useChat.ts @@ -280,13 +280,16 @@ export function useChat(options: UseChatOptions = {}): UseChatReturn { } // Streaming failed - check if auth error, try guest mode - const isAuthError = err instanceof Error && - (err.message.includes("403") || err.message.includes("401") || - err.message.includes("auth") || err.message.includes("Forbidden")); + const isAuthError = + err instanceof Error && + (err.message.includes("403") || + err.message.includes("401") || + err.message.includes("auth") || + err.message.includes("Forbidden")); if (isAuthError) { console.warn("Auth failed, trying guest chat mode"); - + // Try guest chat streaming try { await new Promise((guestResolve, guestReject) => {