diff --git a/apps/web/src/pages/VoiceSettingsOverlay.tsx b/apps/web/src/pages/VoiceSettingsOverlay.tsx index 020cd91..f46fc6e 100644 --- a/apps/web/src/pages/VoiceSettingsOverlay.tsx +++ b/apps/web/src/pages/VoiceSettingsOverlay.tsx @@ -46,7 +46,7 @@ export function VoiceSettingsOverlay({ const [voiceId, setVoiceId] = useState(""); const [autoSpeak, setAutoSpeak] = useState(false); const [loading, setLoading] = useState(true); - const [pending, setPending] = useState<"connect" | "voice" | "speak" | null>(null); + const [pending, setPending] = useState<"voice" | "speak" | null>(null); const [error, setError] = useState(null); const [notice, setNotice] = useState(null); const [soundEnabled, setSoundEnabled] = useState(() => readOoSoundEnabled()); @@ -74,7 +74,7 @@ export function VoiceSettingsOverlay({ }; }, []); - function markPending(next: "connect" | "voice" | "speak" | null) { + function markPending(next: "voice" | "speak" | null) { setPending(next); onBusyChange?.(next !== null); } @@ -129,8 +129,6 @@ export function VoiceSettingsOverlay({ async function ensureLocalVoice(): Promise { if (localConnected) return true; - markPending("connect"); - setError(null); try { await rpc.voice.connect({ provider: LOCAL_PROVIDER_ID, @@ -145,8 +143,6 @@ export function VoiceSettingsOverlay({ } setError(err instanceof Error ? err.message : t`Could not enable speaking`); return false; - } finally { - markPending(null); } }