diff options
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: "" }); |