From 320c878541fde91cfc0d3491cee53f2d8c60d4cc Mon Sep 17 00:00:00 2001 From: EvadLhorg Date: Thu, 19 Nov 2020 18:01:46 +0100 Subject: [PATCH] =?UTF-8?q?make=20the=20card=20pile=20for=20cards=20under?= =?UTF-8?q?=20the=20player=C2=B4s=20agenda=20not=20only=20visible=20when?= =?UTF-8?q?=20the=20Conclave=20agenda=20is=20played=20but=20also=20when=20?= =?UTF-8?q?there=20are=20cards=20in=20that=20pile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Components/GameBoard/PlayerRow.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Components/GameBoard/PlayerRow.jsx b/Components/GameBoard/PlayerRow.jsx index 27425fcb..1f439d1d 100644 --- a/Components/GameBoard/PlayerRow.jsx +++ b/Components/GameBoard/PlayerRow.jsx @@ -55,10 +55,11 @@ class PlayerRow extends React.Component { if(this.props.agenda.code === '06018') { cards = this.props.bannerCards; title = 'Banners'; - } else if(this.props.agenda.code === '09045') { + //Conclave or cards under the agenda + } else if(this.props.agenda.code === '09045' || this.props.conclavePile.length > 0) { cards = this.props.conclavePile; source = 'conclave'; - title = 'Conclave'; + title = this.props.agenda.code === '09045' ? 'Conclave' : 'Agenda'; disablePopup = !this.props.isMe; } @@ -80,7 +81,7 @@ class PlayerRow extends React.Component { topCard={ this.props.agenda } size={ this.props.cardSize } />); - if(this.props.agenda.code === '09045') { + if(this.props.agenda.code === '09045' || this.props.conclavePile.length > 0) { return ( { pile }