mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
Update SpeechRecognition.tsx
This commit is contained in:
parent
eb842c699b
commit
8982ec1439
1 changed files with 4 additions and 2 deletions
|
|
@ -56,8 +56,10 @@ const useSpeechRecognition = (ask) => {
|
|||
};
|
||||
}, [isListening, ask]);
|
||||
|
||||
const toggleListening = (e) => {
|
||||
e.preventDefault();
|
||||
const toggleListening = (event) => {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
}
|
||||
setIsListening((prevState) => !prevState);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue