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