From e2aa9adf0d4a901b8189de92af8b63c815557417 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 30 Apr 2023 02:52:55 +0200 Subject: Fix discard action (empty transactions popup) --- .../src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } } } -- cgit