'update'
[vchess.git] / client / src / components / Chat.vue
index 7eeba5a..c5fde45 100644 (file)
@@ -2,7 +2,7 @@
 div
   input#inputChat(type="text" :placeholder="st.tr['Type here']"
     @keyup.enter="sendChat")
-  button#sendChatBtn(@click="sendChat") {{ st.tr["Send"] }}
+  button#sendChatBtn(@click="sendChat()") {{ st.tr["Send"] }}
   p(v-for="chat in chats" :class="classObject(chat)"
     v-html="chat.name + ': ' + chat.msg")
   p(v-for="chat in pastChats" :class="classObject(chat)"
@@ -11,7 +11,6 @@ div
 
 <script>
 import { store } from "@/store";
-
 export default {
   name: "my-chat",
   // Prop 'pastChats' for corr games where chats are on server