summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-01 20:07:17 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-01 20:07:17 +0200
commit0bbe63ec7088262922d04d79678029fcd33bce0c (patch)
tree7ddbb45de40aed18f4c6b7ab57edf6fc174a5118 /play.js
parent63186592400af0a10ca9b77f63f24b17a183d69b (diff)
downloadland-and-freedom-0bbe63ec7088262922d04d79678029fcd33bce0c.tar.gz
Fix logic to show trash panel when returning a card.
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 a7d8ce7..751170a 100644
--- a/play.js
+++ b/play.js
@@ -496,7 +496,7 @@ function on_update() { // eslint-disable-line no-unused-vars
ui.trash.replaceChildren()
place_cards(ui.trash, view.trash)
- if (view.actions && view.actions.trash)
+ if (view.show_trash)
ui.trash_panel.classList.remove("hide")
else
ui.trash_panel.classList.toggle("hide", trash_toggle)