Procházet zdrojové kódy

remove unnecessary judgment

leedom před 2 roky
rodič
revize
cd671066f7
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  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("");