From 6db083e699c44e16bbd996fd8ac772e160860dd7 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 5 Jan 2021 10:33:46 -0700 Subject: [PATCH] Make the discard hand button actually emit to the server. --- web/src/components/DiscardHandButton.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/src/components/DiscardHandButton.vue b/web/src/components/DiscardHandButton.vue index 20eb35c..3ea43aa 100644 --- a/web/src/components/DiscardHandButton.vue +++ b/web/src/components/DiscardHandButton.vue @@ -63,12 +63,11 @@ export default { */ this.confirmVisible = false; - let data = { - team: this.$store.state.team, - }; - 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 + }); }, }, }