Fix bug
This commit is contained in:
parent
d8e9e7812a
commit
2166169608
|
@ -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
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user