summaryrefslogtreecommitdiff
path: root/sw-ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'sw-ui/src')
-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