[bugfix] Fix sendable the message even when it was empty.

This commit is contained in:
Sakamoto Shiina
2024-11-26 20:28:02 +09:00
parent 44888b7e05
commit 3a360fcbf0

View File

@@ -26,6 +26,9 @@ export const MessageInputBox = () => {
const onSubmitFunction = (e) => {
e.preventDefault();
if (!input_value.trim()) return setInputValue("");
sendMessage(input_value);
if (currentEnableAutoClearMessageInputBox.data) setInputValue("");