0
0
Fork 0

Make the discard hand button actually emit to the server.

This commit is contained in:
Oliver-Akins 2021-01-05 10:33:46 -07:00
parent fe9e272926
commit 6db083e699

View file

@ -63,12 +63,11 @@ export default {
*/ */
this.confirmVisible = false; this.confirmVisible = false;
let data = {
team: this.$store.state.team,
};
console.debug(`Telling server to discard team's hand.`); console.debug(`Telling server to discard team's hand.`);
// TODO -> send data to server this.$socket.client.emit(`NewHand`, {
game_code: this.$store.state.game_code,
team: this.$store.state.team
});
}, },
}, },
} }