From 78e6e086c53ea6a66422521e15e1bfacb1d5790c Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 5 Oct 2024 16:42:44 +0100 Subject: Fix for setup --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.js b/play.js index 5f7dc43..8f3b780 100644 --- a/play.js +++ b/play.js @@ -513,7 +513,7 @@ if (!view.is_pwr_struggle) { // CEAUSESCU -if (view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) { +if (view.ceausescu_cards && view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) { document.getElementById("ceausescu_panel").classList.remove("hide") for (let c of view.ceausescu_cards) { let power_card = ui.power_cards[c] -- cgit v1.2.3