diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 4173fc3a..ca51a06a 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -480,7 +480,7 @@ export function Chat() { // submit user input const onUserSubmit = () => { - if (userInput.length <= 0) return; + if (userInput.trim() === "") return; setIsLoading(true); chatStore.onUserInput(userInput).then(() => setIsLoading(false)); setBeforeInput(userInput);