summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index c5daa5a..781514c 100644
--- a/play.js
+++ b/play.js
@@ -812,7 +812,7 @@ function on_update() {
ui.power_hand.replaceChildren()
if (view.is_pwr_struggle) {
ui.power_hand.appendChild(ui.power_cards[53])
- if (view.power_hand.length > 0)
+ if (view.power_hand && view.power_hand.length > 0)
for (let c of view.power_hand)
ui.power_hand.appendChild(ui.power_cards[c])
}