From 9a3e67fcd2ac9695e35258ea4e5922c8d514486d Mon Sep 17 00:00:00 2001 From: bsu3338 Date: Sun, 3 Sep 2023 18:53:19 -0500 Subject: [PATCH] Update TextChat.jsx --- client/src/components/Input/TextChat.jsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/src/components/Input/TextChat.jsx b/client/src/components/Input/TextChat.jsx index 7a8b548409..bef10e9b40 100644 --- a/client/src/components/Input/TextChat.jsx +++ b/client/src/components/Input/TextChat.jsx @@ -27,13 +27,13 @@ export default function TextChat({ isSearchView = false }) { const { conversationId, jailbreak } = conversation || {}; const { isSpeechSupported, isListening, text: speechText } = useSpeechRecognition(ask); - useEffect(() => { - if (isListening && speechText) { - setText(speechText); - } else { - setText(''); - } - }, [speechText, isListening, setText]); + //useEffect(() => { + // if (isListening && speechText) { + // setText(speechText); + // } else { + // setText(''); + // } + //}, [speechText, isListening, setText]); // auto focus to input, when enter a conversation. useEffect(() => {