Hide bet panel on FR after successful submit
This commit is contained in:
parent
7c7d6815f8
commit
7ccdc6d683
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user