Skip to content

Commit

Permalink
fix: Previously recorded question reappears if clicked on mic repeate…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohini-Microsoft authored Aug 5, 2024
1 parent 3b5b1b1 commit 6ba499f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/frontend/src/pages/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ const Chat = () => {
};

const onMicrophoneClick = async () => {
// clear the previous text
setUserMessage("");
setRecognizedText("");
if (!isRecognizing) {
setSendButtonDisabled(true);
await startSpeechRecognition();
Expand Down

0 comments on commit 6ba499f

Please sign in to comment.