Default to YES if no bet choice has been made yet
This commit is contained in:
parent
ac82ba4f0c
commit
2369daa8b0
|
@ -68,6 +68,9 @@ export function BetPanel(props: {
|
||||||
function onBetChange(newAmount: number | undefined) {
|
function onBetChange(newAmount: number | undefined) {
|
||||||
setWasSubmitted(false)
|
setWasSubmitted(false)
|
||||||
setBetAmount(newAmount)
|
setBetAmount(newAmount)
|
||||||
|
if (!betChoice) {
|
||||||
|
setBetChoice('YES')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function submitBet() {
|
async function submitBet() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user