소스 검색

remove unnecessary judgment

leedom 2 년 전
부모
커밋
cd671066f7
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      app/components/chat.tsx

+ 0 - 1
app/components/chat.tsx

@@ -404,7 +404,6 @@ export function Chat(props: {
 
   // submit user input
   const onUserSubmit = () => {
-    if (userInput.length <= 0) return;
     setIsLoading(true);
     chatStore.onUserInput(userInput).then(() => setIsLoading(false));
     setUserInput("");