mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	refactor: determine userInput by trimming
This commit is contained in:
		@@ -480,7 +480,7 @@ export function Chat() {
 | 
			
		||||
 | 
			
		||||
  // submit user input
 | 
			
		||||
  const onUserSubmit = () => {
 | 
			
		||||
    if (userInput.length <= 0) return;
 | 
			
		||||
    if (userInput.trim() === "") return;
 | 
			
		||||
    setIsLoading(true);
 | 
			
		||||
    chatStore.onUserInput(userInput).then(() => setIsLoading(false));
 | 
			
		||||
    setBeforeInput(userInput);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user