diff --git a/web/components/feed/activity-items.ts b/web/components/feed/activity-items.ts index 251849e2..f7a84400 100644 --- a/web/components/feed/activity-items.ts +++ b/web/components/feed/activity-items.ts @@ -279,6 +279,7 @@ function getAnswerAndCommentInputGroups( outcomes = _.sortBy(outcomes, (outcome) => getOutcomeProbability(contract, outcome) ) + const betsByCurrentUser = bets.filter((bet) => bet.userId === user?.id) const answerGroups = outcomes .map((outcome) => { @@ -301,7 +302,7 @@ function getAnswerAndCommentInputGroups( answer, items, user, - betsByCurrentUser: bets.filter((bet) => bet.userId === user?.id), + betsByCurrentUser: betsByCurrentUser, commentsByCurrentUser: answerComments.filter( (comment) => comment.userId === user?.id ),