summaryrefslogtreecommitdiff
path: root/sw-ui/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-02 14:53:24 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-02 14:53:24 +0100
commita91939036b7f69bcb0bfc17d83c69025ad564a07 (patch)
treed49a19b1efc1791330da3ff95b781f558e7a3cf6 /sw-ui/src/main/kotlin/org/luxons
parentFilter only affordable transactions (diff)
downloadseven-wonders-a91939036b7f69bcb0bfc17d83c69025ad564a07.tar.gz
seven-wonders-a91939036b7f69bcb0bfc17d83c69025ad564a07.tar.bz2
seven-wonders-a91939036b7f69bcb0bfc17d83c69025ad564a07.zip
Cleanup
Diffstat (limited to 'sw-ui/src/main/kotlin/org/luxons')
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt2
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))
}
}
bgstack15