diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-02 14:53:24 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-02 14:53:24 +0100 |
commit | a91939036b7f69bcb0bfc17d83c69025ad564a07 (patch) | |
tree | d49a19b1efc1791330da3ff95b781f558e7a3cf6 /sw-ui/src/main | |
parent | Filter only affordable transactions (diff) | |
download | seven-wonders-a91939036b7f69bcb0bfc17d83c69025ad564a07.tar.gz seven-wonders-a91939036b7f69bcb0bfc17d83c69025ad564a07.tar.bz2 seven-wonders-a91939036b7f69bcb0bfc17d83c69025ad564a07.zip |
Cleanup
Diffstat (limited to 'sw-ui/src/main')
-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 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<HandProps, RState>(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)) } } |