From 612dca3fcaa5ecef5ae4bf1130f612c887baae0b Mon Sep 17 00:00:00 2001 From: Alex P Date: Tue, 5 Aug 2025 00:17:08 +0300 Subject: [PATCH] Fix: eslint errors --- ui/src/hooks/useMicrophone.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/hooks/useMicrophone.ts b/ui/src/hooks/useMicrophone.ts index 52a9720..f53a449 100644 --- a/ui/src/hooks/useMicrophone.ts +++ b/ui/src/hooks/useMicrophone.ts @@ -323,7 +323,7 @@ export function useMicrophone() { // Retry logic for backend failures let backendSuccess = false; - let lastError: any = null; + let lastError: Error | string | null = null; for (let attempt = 1; attempt <= 3; attempt++) { try { @@ -364,7 +364,7 @@ export function useMicrophone() { break; } } catch (error) { - lastError = error; + lastError = error instanceof Error ? error : String(error); console.error(`Backend microphone start threw error (attempt ${attempt}):`, error); // For network errors, try again after a short delay