Filter out redemption bets from feeds
This commit is contained in:
parent
3f0002f9e8
commit
4847939e8c
|
@ -265,7 +265,7 @@ export function getAllContractActivityItems(
|
||||||
|
|
||||||
bets =
|
bets =
|
||||||
outcomeType === 'BINARY'
|
outcomeType === 'BINARY'
|
||||||
? bets.filter((bet) => !bet.isAnte)
|
? bets.filter((bet) => !bet.isAnte && !bet.isRedemption)
|
||||||
: bets.filter((bet) => !(bet.isAnte && (bet.outcome as string) === '0'))
|
: bets.filter((bet) => !(bet.isAnte && (bet.outcome as string) === '0'))
|
||||||
|
|
||||||
let answer: Answer | undefined
|
let answer: Answer | undefined
|
||||||
|
@ -318,7 +318,9 @@ export function getRecentContractActivityItems(
|
||||||
comments: Comment[],
|
comments: Comment[],
|
||||||
user: User | null | undefined
|
user: User | null | undefined
|
||||||
) {
|
) {
|
||||||
bets = bets.sort((b1, b2) => b1.createdTime - b2.createdTime)
|
bets = bets
|
||||||
|
.filter((bet) => !bet.isRedemption)
|
||||||
|
.sort((b1, b2) => b1.createdTime - b2.createdTime)
|
||||||
comments = comments.sort((c1, c2) => c1.createdTime - c2.createdTime)
|
comments = comments.sort((c1, c2) => c1.createdTime - c2.createdTime)
|
||||||
|
|
||||||
const questionItem: QuestionItem = {
|
const questionItem: QuestionItem = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user