From 05a76559806bb23ecfec61d1708e3777185b858e Mon Sep 17 00:00:00 2001 From: devfake Date: Thu, 25 Jun 2015 21:25:39 +0200 Subject: [PATCH] fix leader choose --- .../app/modules/deck-builder/components/show-leaders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/client/app/modules/deck-builder/components/show-leaders.js b/site/client/app/modules/deck-builder/components/show-leaders.js index 001c14b..3f35a7b 100644 --- a/site/client/app/modules/deck-builder/components/show-leaders.js +++ b/site/client/app/modules/deck-builder/components/show-leaders.js @@ -14,8 +14,8 @@ module.exports = { chooseLeader(card) { // todo: make own leader variable for(var item in this.deck) { - if(this.deck[item].type == 3) { - this.deck.$set(item, card); + if(this.deck[item].card.type == 3) { + this.deck.$set(item, {card}); } }