Skip to content

Commit

Permalink
タイポ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ochisamu committed Sep 8, 2024
1 parent d647780 commit 03a09d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { SlideText } from './slideText'
export const Form = () => {
const modalImage = homeStore((s) => s.modalImage)
const webcamStatus = homeStore((s) => s.webcamStatus)
const caputureStatus = homeStore((s) => s.captureStatus)
const captureStatus = homeStore((s) => s.captureStatus)
const slideMode = settingsStore((s) => s.slideMode)
const slideVisible = menuStore((s) => s.slideVisible)
const slidePlaying = slideStore((s) => s.isPlaying)
Expand Down Expand Up @@ -48,14 +48,14 @@ export const Form = () => {
homeStore.setState({ triggerShutter: true })

// MENUの中でshowCameraがtrueの場合、画像が取得されるまで待機
if (webcamStatus || caputureStatus) {
if (webcamStatus || captureStatus) {
// Webcamが開いている場合
setDelayedText(text) // 画像が取得されるまで遅延させる
} else {
handleSendChat(text)
}
},
[handleSendChat, webcamStatus, caputureStatus, setDelayedText]
[handleSendChat, webcamStatus, captureStatus, setDelayedText]
)

useEffect(() => {
Expand Down

0 comments on commit 03a09d8

Please sign in to comment.