diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2023-04-30 02:52:55 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2023-04-30 02:52:55 +0200 |
commit | e2aa9adf0d4a901b8189de92af8b63c815557417 (patch) | |
tree | 89739f16061afbf10fff6a9c2925f7d618c494f4 | |
parent | Upgrade to Spring Boot 3.0 (diff) | |
download | seven-wonders-e2aa9adf0d4a901b8189de92af8b63c815557417.tar.gz seven-wonders-e2aa9adf0d4a901b8189de92af8b63c815557417.tar.bz2 seven-wonders-e2aa9adf0d4a901b8189de92af8b63c815557417.zip |
Fix discard action (empty transactions popup)
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt index a136465d..b3fcdf1f 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt @@ -192,7 +192,7 @@ private fun ChildrenBuilder.discardButton(card: HandCard, prepareMove: (MoveType large = true intent = Intent.DANGER icon = IconNames.CROSS - onClick = { prepareMove(MoveType.DISCARD, card, emptyList()) } + onClick = { prepareMove(MoveType.DISCARD, card, singleOptionNoTransactionNeeded()) } } } |