diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-04 16:25:57 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-04 16:25:57 +0100 |
commit | 2a2354a6fe7442dffd5539b5218eed9741b67e3c (patch) | |
tree | 5bd20e9fd353ddfe88b856695dbefcf7e275be83 | |
parent | d9b77f780cbf075df18490598bff0a6b51a8b750 (diff) | |
download | votes-for-women-2a2354a6fe7442dffd5539b5218eed9741b67e3c.tar.gz |
fix card action
-rw-r--r-- | play.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -286,7 +286,9 @@ function on_focus_us_state(evt) { function on_click_card(evt) { let card = evt.target.my_card - if (is_action('card_select', card)) { + if (is_action('card', card)) { + send_action('card', card) + } else if (is_action('card_select', card)) { show_popup_menu(evt, "popup_select_card", card, CARDS[card].name) } else { show_popup_menu(evt, "popup", card, CARDS[card].name) |