瀏覽代碼

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("");