From 70c00e125a1083faf9f48f960f3bad77e87b6e76 Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 9 Mar 2020 17:52:33 -0300 Subject: Chat: fix mensajes vacios --- src/Chat.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Chat.js b/src/Chat.js index a90a5aa..84e1193 100644 --- a/src/Chat.js +++ b/src/Chat.js @@ -74,6 +74,9 @@ class Chat extends Component { sendMessage() { const { chatMessage } = this.state; + if (chatMessage === "") { + return; + } this.client.send("MSG:1:" + chatMessage); this.addMessage(chatMessage, "black", true); this.setState({ chatMessage: "" }); -- cgit v1.2.1-18-gbd029