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