Don't show resolve options after answer chosen
This commit is contained in:
parent
f1d3ac8189
commit
7b082cd27b
|
@ -66,7 +66,7 @@ export function AnswersPanel(props: { contract: Contract; answers: Answer[] }) {
|
||||||
key={answer.id}
|
key={answer.id}
|
||||||
answer={answer}
|
answer={answer}
|
||||||
contract={contract}
|
contract={contract}
|
||||||
showChoice={resolveOption === 'CHOOSE'}
|
showChoice={!resolution && resolveOption === 'CHOOSE'}
|
||||||
isChosen={answer.id === answerChoice}
|
isChosen={answer.id === answerChoice}
|
||||||
onChoose={() => setAnswerChoice(answer.id)}
|
onChoose={() => setAnswerChoice(answer.id)}
|
||||||
/>
|
/>
|
||||||
|
@ -457,6 +457,8 @@ function AnswerResolvePanel(props: {
|
||||||
if (result?.status !== 'success') {
|
if (result?.status !== 'success') {
|
||||||
setError(result?.error || 'Error resolving market')
|
setError(result?.error || 'Error resolving market')
|
||||||
}
|
}
|
||||||
|
setResolveOption(undefined)
|
||||||
|
clearAnswerChoice()
|
||||||
setIsSubmitting(false)
|
setIsSubmitting(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user