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 { 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'),
} }
} }