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
|
// 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…
x
Reference in New Issue
Block a user