forked from XiaoMo/ChatGPT-Next-Web
remove unnecessary judgment
This commit is contained in:
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…
x
Reference in New Issue
Block a user