fix blank username

This commit is contained in:
Alberto Xamin 2020-11-24 22:41:54 +01:00
parent 98cf6fd644
commit f59cdbd574
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -98,9 +98,11 @@ export default {
},
methods: {
setUsername(e){
if (this.username.trim().length > 0){
this.didSetUsername = true
this.$socket.emit('set_username', this.username)
e.preventDefault();
}
},
getLobbyCard(lobby) {
return {