From 9426cc2b941b194ce33699fb2ae49a5b47d4f2e1 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 16 Mar 2022 19:37:43 -0700 Subject: [PATCH] Stop showing creator's trades in all cases --- web/components/feed/activity-items.ts | 2 +- web/components/feed/feed-items.tsx | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/web/components/feed/activity-items.ts b/web/components/feed/activity-items.ts index 66acd220..dfbed0f1 100644 --- a/web/components/feed/activity-items.ts +++ b/web/components/feed/activity-items.ts @@ -85,7 +85,7 @@ const DAY_IN_MS = 24 * 60 * 60 * 1000 // - Within a day of the first in the group // (Unless the bets are older: then are grouped by 7-days.) // - Do not have a comment -// - Were not created by this user or the contract creator +// - Were not created by this user // Return a list of ActivityItems function groupBets( bets: Bet[], diff --git a/web/components/feed/feed-items.tsx b/web/components/feed/feed-items.tsx index 82815e4f..1f5f166a 100644 --- a/web/components/feed/feed-items.tsx +++ b/web/components/feed/feed-items.tsx @@ -178,7 +178,6 @@ function FeedBet(props: { const { id, amount, outcome, createdTime, userId } = bet const user = useUser() const isSelf = user?.id === userId - const isCreator = contract.creatorId === userId // You can comment if your bet was posted in the last hour const canComment = canAddComment(createdTime, isSelf) @@ -202,13 +201,6 @@ function FeedBet(props: { avatarUrl={user.avatarUrl} username={user.username} /> - ) : isCreator ? ( - ) : (
@@ -219,10 +211,7 @@ function FeedBet(props: {
- - {isSelf ? 'You' : isCreator ? contract.creatorName : 'A trader'} - {' '} - {bought} {money} + {isSelf ? 'You' : 'A trader'} {bought} {money} {!hideOutcome && ( <> {' '}