fix blank username
This commit is contained in:
parent
98cf6fd644
commit
f59cdbd574
@ -98,9 +98,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
setUsername(e){
|
||||
this.didSetUsername = true
|
||||
this.$socket.emit('set_username', this.username)
|
||||
e.preventDefault();
|
||||
if (this.username.trim().length > 0){
|
||||
this.didSetUsername = true
|
||||
this.$socket.emit('set_username', this.username)
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
getLobbyCard(lobby) {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user