Update SpeechRecognition.tsx

This commit is contained in:
bsu3338 2023-08-05 15:43:13 -05:00 committed by GitHub
parent 5ad99272e2
commit 5d760823ac
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, setText]);
const toggleListening = (event) => { const toggleListening = (event) => {
if (event) { if (event) {