daily movers: filter out numeric markets
This commit is contained in:
parent
935c550733
commit
a2b01e28c9
|
@ -30,12 +30,12 @@ export const useProbChangesAlgolia = (userId: string) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
positiveChanges: positiveData.hits.filter(
|
positiveChanges: positiveData.hits
|
||||||
(c) => c.probChanges && c.probChanges.day > 0
|
.filter((c) => c.probChanges && c.probChanges.day > 0)
|
||||||
),
|
.filter((c) => c.outcomeType === 'BINARY'),
|
||||||
negativeChanges: negativeData.hits.filter(
|
negativeChanges: negativeData.hits
|
||||||
(c) => c.probChanges && c.probChanges.day < 0
|
.filter((c) => c.probChanges && c.probChanges.day < 0)
|
||||||
),
|
.filter((c) => c.outcomeType === 'BINARY'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user