Skip to content

Commit ff1b093

Browse files
authored
Update Chat.tsx
change event: any
1 parent 0ad5c9f commit ff1b093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ export function Chat() {
8080
setIsListening(false)
8181
}
8282

83-
recognition.onresult = (event) => {
83+
recognition.onresult = (event: any) => {
8484
const lastIndex = event.results.length - 1
8585
const transcript = event.results[lastIndex][0].transcript
8686
setInput(transcript)
8787
}
8888

89-
recognition.onerror = (event) => {
89+
recognition.onerror = (event: any) => {
9090
console.error(event)
9191
recognition.stop()
9292
setIsListening(false)

0 commit comments

Comments
 (0)