Hide bet panel on FR after successful submit

This commit is contained in:
Ian Philips 2022-04-19 09:01:40 -06:00
parent 7c7d6815f8
commit 7ccdc6d683

View File

@ -64,6 +64,7 @@ export function AnswerBetPanel(props: {
if (result?.status === 'success') {
setIsSubmitting(false)
setBetAmount(undefined)
props.closePanel()
} else {
setError(result?.error || 'Error placing bet')
setIsSubmitting(false)