[bugfix] Fix sendable the message even when it was empty.
This commit is contained in:
@@ -26,6 +26,9 @@ export const MessageInputBox = () => {
|
|||||||
|
|
||||||
const onSubmitFunction = (e) => {
|
const onSubmitFunction = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
if (!input_value.trim()) return setInputValue("");
|
||||||
|
|
||||||
sendMessage(input_value);
|
sendMessage(input_value);
|
||||||
|
|
||||||
if (currentEnableAutoClearMessageInputBox.data) setInputValue("");
|
if (currentEnableAutoClearMessageInputBox.data) setInputValue("");
|
||||||
|
|||||||
Reference in New Issue
Block a user