Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
31b6034b5f
commit
8d222317a0
@ -1130,6 +1130,7 @@ final class GameState: CasinoGameState {
|
||||
playerHadPair = false
|
||||
bankerHadPair = false
|
||||
betResults = []
|
||||
showResultBanner = false
|
||||
currentPhase = .betting
|
||||
}
|
||||
|
||||
|
||||
@ -84,6 +84,10 @@ public struct ChipSelectorView: View {
|
||||
.accessibilityElement(children: .contain)
|
||||
.accessibilityLabel(String(localized: "Chip selector", bundle: .module))
|
||||
.accessibilityHint(String(localized: "Double tap a chip to select bet amount", bundle: .module))
|
||||
.onAppear {
|
||||
// Ensure valid chip selection when view appears
|
||||
autoSelectAffordableChip(forBalance: balance)
|
||||
}
|
||||
.onChange(of: balance) { _, newBalance in
|
||||
// Auto-select highest affordable chip if current selection is now too expensive
|
||||
autoSelectAffordableChip(forBalance: newBalance)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user