From a91939036b7f69bcb0bfc17d83c69025ad564a07 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Tue, 2 Feb 2021 14:53:24 +0100 Subject: Cleanup --- .../src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw-ui') 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 a5ce0357..59ab12ce 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 @@ -147,7 +147,7 @@ class HandComponent(props: HandProps) : RComponent(props) { private fun prepareMove(moveType: MoveType, card: HandCard, transactionOptions: ResourceTransactionOptions) { when (transactionOptions.size) { - 1 -> props.prepareMove(PlayerMove(moveType, card.name, transactionOptions.first())) + 1 -> props.prepareMove(PlayerMove(moveType, card.name, transactionOptions.single())) else -> props.startTransactionsSelection(TransactionSelectorState(moveType, card, transactionOptions)) } } -- cgit