diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-25 16:11:55 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-25 16:11:55 +0100 |
commit | 03d92c73949c7660d1a6dd65792bc3aed22322ab (patch) | |
tree | eb66bdb875799e72ce72e515d0e2db9a87b8932b | |
parent | 4cf5201421f883984b414778dd8664410305f9ea (diff) | |
download | votes-for-women-03d92c73949c7660d1a6dd65792bc3aed22322ab.tar.gz |
dont show empty hand when observing
-rw-r--r-- | play.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |