Add betting activity back to feed

This commit is contained in:
Ian Philips 2022-04-27 09:56:28 -06:00
parent 53c79f41a3
commit 57572e0908

View File

@ -432,24 +432,13 @@ export function getRecentContractActivityItems(
) )
) )
} else { } else {
const onlyUsersBetsOrBetsWithComments = bets.filter((bet) =>
comments.some(
(comment) => comment.betId === bet.id || bet.userId === user?.id
)
)
items.push( items.push(
...groupBetsAndComments( ...groupBetsAndComments(bets, comments, contract, user?.id, {
onlyUsersBetsOrBetsWithComments, hideOutcome: false,
comments, abbreviated: true,
contract, smallAvatar: false,
user?.id, reversed: true,
{ })
hideOutcome: false,
abbreviated: true,
smallAvatar: false,
reversed: true,
}
)
) )
} }