Skip to content

Commit 05f5e93

Browse files
committed
fix: potential fix for connection dropping - cannot repo on dev
1 parent 5f9b25b commit 05f5e93

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

app/components/Conversation.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,9 @@ export default function Conversation(): JSX.Element {
189189
return () => {
190190
clearTimeout(failsafeTimeout);
191191
};
192-
}, [
193-
microphoneOpen,
194-
currentUtterance,
195-
append,
196-
clearTranscriptParts,
197-
failsafeTimeout,
198-
]);
192+
193+
// eslint-disable-next-line react-hooks/exhaustive-deps
194+
}, [microphoneOpen, currentUtterance]);
199195

200196
const onSpeechStart = () => {
201197
/**
@@ -205,7 +201,6 @@ export default function Conversation(): JSX.Element {
205201
*/
206202
if (!microphoneOpen) return;
207203

208-
209204
/**
210205
* We we're talking again, we want to wait for a transcript.
211206
*/
@@ -334,7 +329,7 @@ export default function Conversation(): JSX.Element {
334329
if (!content) return;
335330

336331
/**
337-
* failsafe was triggered since we last sent a message to TTS
332+
* failsafe was triggered since we last sent a message to TTS
338333
*/
339334
if (failsafeTriggered) {
340335
clearTranscriptParts();

0 commit comments

Comments
 (0)