Show all answers in answer panel

This commit is contained in:
James Grugett 2022-06-10 23:28:09 -05:00
parent f4a66263dd
commit 457db07da4

View File

@ -156,9 +156,7 @@ function getAnswerItems(
answers: Answer[],
user: User | undefined | null
) {
let outcomes = uniq(answers.map((answer) => answer.number.toString())).filter(
(outcome) => getOutcomeProbability(contract, outcome) > 0.0001
)
let outcomes = uniq(answers.map((answer) => answer.number.toString()))
outcomes = sortBy(outcomes, (outcome) =>
getOutcomeProbability(contract, outcome)
).reverse()