From cd671066f767803d4486aeaec3de798e1c17a390 Mon Sep 17 00:00:00 2001 From: leedom Date: Thu, 6 Apr 2023 22:52:18 +0800 Subject: [PATCH] remove unnecessary judgment --- app/components/chat.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 9fefe9528..0a0cb1ca2 100644 --- a/app/components/chat.tsx +++ b/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("");