remove unnecessary judgment

main
leedom 3 years ago
parent fb3f5a414a
commit cd671066f7

@ -404,7 +404,6 @@ export function Chat(props: {
// submit user input // submit user input
const onUserSubmit = () => { const onUserSubmit = () => {
if (userInput.length <= 0) return;
setIsLoading(true); setIsLoading(true);
chatStore.onUserInput(userInput).then(() => setIsLoading(false)); chatStore.onUserInput(userInput).then(() => setIsLoading(false));
setUserInput(""); setUserInput("");

Loading…
Cancel
Save