diff --git a/web/hooks/use-prob-changes.tsx b/web/hooks/use-prob-changes.tsx index 698111b8..a6f89a2a 100644 --- a/web/hooks/use-prob-changes.tsx +++ b/web/hooks/use-prob-changes.tsx @@ -30,8 +30,12 @@ export const useProbChangesAlgolia = (userId: string) => { } return { - positiveChanges: positiveData.hits, - negativeChanges: negativeData.hits, + positiveChanges: positiveData.hits.filter( + (c) => c && c.probChanges.day > 0 + ), + negativeChanges: negativeData.hits.filter( + (c) => c && c.probChanges.day < 0 + ), } }