This commit is contained in:
James Grugett 2022-09-17 19:56:20 -05:00
parent d8e9e7812a
commit 2166169608

View File

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