diff options
author | Renard | 2020-03-09 17:52:33 -0300 |
---|---|---|
committer | Renard | 2020-03-09 17:52:33 -0300 |
commit | 70c00e125a1083faf9f48f960f3bad77e87b6e76 (patch) | |
tree | 44138f4f6345a5da7b979bbff5b4825b7a74b0b9 /src/Chat.js | |
parent | 21e24d597fe7f7bfff5a587540784482a301be0a (diff) | |
download | bairadio-app-70c00e125a1083faf9f48f960f3bad77e87b6e76.tar.gz bairadio-app-70c00e125a1083faf9f48f960f3bad77e87b6e76.tar.xz bairadio-app-70c00e125a1083faf9f48f960f3bad77e87b6e76.zip |
Chat: fix mensajes vacios
Diffstat (limited to 'src/Chat.js')
-rw-r--r-- | src/Chat.js | 3 |
1 files changed, 3 insertions, 0 deletions
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: "" }); |