From 7bb663891f6ac865a3a4f7c732bca9c4d9c03e26 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 10 Mar 2022 12:37:40 -0600 Subject: [PATCH] Put back outcome labels for non-free response. --- web/components/contract-feed.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx index 123b175e..b578b51b 100644 --- a/web/components/contract-feed.tsx +++ b/web/components/contract-feed.tsx @@ -137,18 +137,20 @@ function FeedBet(props: { activityItem: any; feedType: FeedType }) { )}
+ {answer && ( +
+ {answer.text} +
+ )}
{isSelf ? 'You' : isCreator ? contract.creatorName : 'A trader'} {' '} {bought} {money} - - - {answer && ( -
- {answer.text} -
+ {!answer && ( + )} + {canComment && ( // Allow user to comment in an textarea if they are the creator
@@ -703,7 +705,7 @@ function FeedExpand(props: { setExpanded: (expanded: boolean) => void }) { // On 'multi' feeds, the outcome is redundant, so we hide it function MaybeOutcomeLabel(props: { outcome: string; feedType: FeedType }) { const { outcome, feedType } = props - return feedType === 'multi' || feedType === 'activity' ? null : ( + return feedType === 'multi' ? null : ( {' '} of