Skip to content

Commit

Permalink
レビュー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tegnike committed Oct 11, 2024
1 parent 607af81 commit 1f609b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/messageReceiver.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useEffect, useState, useCallback } from 'react'
import { speakMessageHandler } from '@/features/chat/handlers'
import settingsStore from '@/features/stores/settings'
import homeStore from '@/features/stores/home'

class Message {
timestamp: number
Expand Down Expand Up @@ -44,10 +43,11 @@ const MessageReceiver = () => {
}
}

fetchMessages()
const intervalId = setInterval(fetchMessages, 1000)

return () => clearInterval(intervalId)
}, [lastTimestamp, clientId, speakMessage])
}, [clientId, speakMessage])

return <></>
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/send-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const SendMessage = () => {
newMessages[index] = e.target.value
setMessages(newMessages)
}}
onKeyDown={(e) => handleKeyDown(e, index)}
onKeyDown={(e) => handleKeyDown(e)}
className="bg-surface1 hover:bg-surface1-hover focus:bg-surface1 rounded-16 w-full px-16 text-text-primary typography-16 font-bold"
rows={2}
style={{
Expand Down

0 comments on commit 1f609b8

Please sign in to comment.