Fix explore on dev

This commit is contained in:
James Grugett 2022-04-21 12:43:54 -05:00
parent 7b70b9b3bd
commit 1af0740f10

View File

@ -181,7 +181,7 @@ export function getContractBetNullMetrics() {
export function getTopAnswer(contract: FreeResponseContract) { export function getTopAnswer(contract: FreeResponseContract) {
const { answers } = contract const { answers } = contract
const top = _.maxBy( const top = _.maxBy(
answers.map((answer) => ({ answers?.map((answer) => ({
answer, answer,
prob: getOutcomeProbability(contract, answer.id), prob: getOutcomeProbability(contract, answer.id),
})), })),