remove unnecessary judgment

This commit is contained in:
leedom 2023-04-06 22:52:18 +08:00
parent fb3f5a414a
commit cd671066f7
1 changed files with 0 additions and 1 deletions

View File

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