Skip to content
Permalink
Browse files

fix commander display (#723)

  • Loading branch information
Manuel-777 committed Nov 14, 2019
1 parent a9c8ee3 commit b4cec68a8d45f5e44a5a5f7d8900d24c43b7a386
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/window_background/data.ts
  2. +1 −1 src/window_main/renderer-util.js
@@ -293,6 +293,7 @@ export function completeMatch(match: ExtendedMatchData, matchData: MatchData, ma
match.eventId = matchData.eventId;
match.playerDeck = matchData.player.originalDeck.getSave();
match.oppDeck = getOpponentDeck();
match.oppDeck.commandZoneGRPIds = matchData.opponent.commanderGrpIds;

if (
(!match.tags || !match.tags.length) &&
@@ -182,7 +182,7 @@ function drawDeck(div, deck, showWildcards = false) {
div.innerHTML = "";
const unique = makeId(4);

if (deck.commandZoneGRPIds) {
if (deck.commandZoneGRPIds && deck.commandZoneGRPIds.length > 0) {
let separator = deckDrawer.cardSeparator(`Commander`);
div.appendChild(separator);

0 comments on commit b4cec68

Please sign in to comment.
You can’t perform that action at this time.