aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Renard 2020-03-09 17:52:33 -0300
committerLibravatar Renard 2020-03-09 17:52:33 -0300
commit70c00e125a1083faf9f48f960f3bad77e87b6e76 (patch)
tree44138f4f6345a5da7b979bbff5b4825b7a74b0b9 /src
parent21e24d597fe7f7bfff5a587540784482a301be0a (diff)
downloadbairadio-app-70c00e125a1083faf9f48f960f3bad77e87b6e76.tar.gz
bairadio-app-70c00e125a1083faf9f48f960f3bad77e87b6e76.tar.xz
bairadio-app-70c00e125a1083faf9f48f960f3bad77e87b6e76.zip
Chat: fix mensajes vacios
Diffstat (limited to 'src')
-rw-r--r--src/Chat.js3
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: "" });