From bfe00595e73d07d06fa57151895bc3e960c6e07d Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Mon, 19 Sep 2022 00:53:10 -0700 Subject: [PATCH] Make comments with bet outcome but no answer outcome appear (#894) --- web/components/feed/contract-activity.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/components/feed/contract-activity.tsx b/web/components/feed/contract-activity.tsx index fc817082..e660bf10 100644 --- a/web/components/feed/contract-activity.tsx +++ b/web/components/feed/contract-activity.tsx @@ -126,7 +126,10 @@ export function FreeResponseContractCommentsActivity(props: { (answer) => -getOutcomeProbability(contract, answer.number.toString()) ) const commentsByUserId = groupBy(comments, (c) => c.userId) - const commentsByOutcome = groupBy(comments, (c) => c.answerOutcome ?? '_') + const commentsByOutcome = groupBy( + comments, + (c) => c.answerOutcome ?? c.betOutcome ?? '_' + ) return ( <>