Ver código fonte

Merge pull request #12168 from yak1ex/fix_inconsistent_value_check_in_onMessageHandler_in_Chat_svelte

fix: Inconsistent value check in onMessageHandler() in Chat.svelte
Timothy Jaeryang Baek 1 mês atrás
pai
commit
66015bb341
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -385,7 +385,7 @@
 		if (event.data.type === 'input:prompt:submit') {
 			console.debug(event.data.text);
 
-			if (prompt !== '') {
+			if (event.data.text !== '') {
 				await tick();
 				submitPrompt(event.data.text);
 			}