From 03d92c73949c7660d1a6dd65792bc3aed22322ab Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sat, 25 Nov 2023 16:11:55 +0100 Subject: dont show empty hand when observing --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') 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]) -- cgit v1.2.3