From 19bf28bfcdd6ce338762304c076adbe1274dc08f Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Sun, 27 Dec 2020 17:08:28 +0100 Subject: [PATCH] fix cards with --- frontend/src/components/Player.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Player.vue b/frontend/src/components/Player.vue index a7bc925..3ddced0 100644 --- a/frontend/src/components/Player.vue +++ b/frontend/src/components/Player.vue @@ -47,7 +47,7 @@ - + @@ -337,9 +337,9 @@ export default { this.card_with = card } else { let card_data = { - index: this.hand.indexOf(this.card_with), + index: this.handComputed.indexOf(this.card_with), against: null, - with: this.hand.indexOf(card), + with: this.handComputed.indexOf(card), } this.card_with = null this.$socket.emit('play_card', card_data)