Update SpeechRecognition.tsx

This commit is contained in:
bsu3338 2023-08-05 10:56:41 -05:00 committed by GitHub
parent ca3f064a6e
commit 2522d7654e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ const useSpeechRecognition = (ask) => {
return () => { return () => {
recognition.stop(); recognition.stop();
}; };
}, [isListening, ask]); }, [isListening, ask, setText]);
const toggleListening = (event) => { const toggleListening = (event) => {
if (event) { if (event) {