From 1af0740f1028afd2f788d59377b7e045181eeac7 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 21 Apr 2022 12:43:54 -0500 Subject: [PATCH] Fix explore on dev --- common/calculate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/calculate.ts b/common/calculate.ts index cc6451c5..06820edc 100644 --- a/common/calculate.ts +++ b/common/calculate.ts @@ -181,7 +181,7 @@ export function getContractBetNullMetrics() { export function getTopAnswer(contract: FreeResponseContract) { const { answers } = contract const top = _.maxBy( - answers.map((answer) => ({ + answers?.map((answer) => ({ answer, prob: getOutcomeProbability(contract, answer.id), })),