summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-25 16:11:55 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-25 16:11:55 +0100
commit03d92c73949c7660d1a6dd65792bc3aed22322ab (patch)
treeeb66bdb875799e72ce72e515d0e2db9a87b8932b
parent4cf5201421f883984b414778dd8664410305f9ea (diff)
downloadvotes-for-women-03d92c73949c7660d1a6dd65792bc3aed22322ab.tar.gz
dont show empty hand when observing
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 4893a7b..0cdc0fe 100644
--- a/play.js
+++ b/play.js
@@ -672,7 +672,7 @@ function on_update() { // eslint-disable-line no-unused-vars
document.getElementById("strategy_draw").replaceChildren()
document.getElementById("out_of_play").replaceChildren()
- if (view.hand) {
+ if (view.hand.length) {
document.getElementById("hand_panel").classList.remove("hide")
for (let c of view.hand)
document.getElementById("hand").appendChild(ui.cards[c])