daily movers: filter out numeric markets

This commit is contained in:
mantikoros 2022-09-19 16:29:21 -05:00
parent 935c550733
commit a2b01e28c9

View File

@ -30,12 +30,12 @@ export const useProbChangesAlgolia = (userId: string) => {
}
return {
positiveChanges: positiveData.hits.filter(
(c) => c.probChanges && c.probChanges.day > 0
),
negativeChanges: negativeData.hits.filter(
(c) => c.probChanges && c.probChanges.day < 0
),
positiveChanges: positiveData.hits
.filter((c) => c.probChanges && c.probChanges.day > 0)
.filter((c) => c.outcomeType === 'BINARY'),
negativeChanges: negativeData.hits
.filter((c) => c.probChanges && c.probChanges.day < 0)
.filter((c) => c.outcomeType === 'BINARY'),
}
}