Default to YES if no bet choice has been made yet

This commit is contained in:
Austin Chen 2022-01-26 14:06:37 -06:00
parent ac82ba4f0c
commit 2369daa8b0

View File

@ -68,6 +68,9 @@ export function BetPanel(props: {
function onBetChange(newAmount: number | undefined) {
setWasSubmitted(false)
setBetAmount(newAmount)
if (!betChoice) {
setBetChoice('YES')
}
}
async function submitBet() {