Fix: eslint errors

This commit is contained in:
Alex P 2025-08-05 00:17:08 +03:00
parent 3444607021
commit 612dca3fca
1 changed files with 2 additions and 2 deletions

View File

@ -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