remove unnecessary judgment

main
leedom 3 years ago
parent fb3f5a414a
commit cd671066f7

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

Loading…
Cancel
Save