Fix bug part 2
This commit is contained in:
parent
2166169608
commit
987274ad2d
|
@ -31,10 +31,10 @@ export const useProbChangesAlgolia = (userId: string) => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
positiveChanges: positiveData.hits.filter(
|
positiveChanges: positiveData.hits.filter(
|
||||||
(c) => c && c.probChanges.day > 0
|
(c) => c.probChanges && c.probChanges.day > 0
|
||||||
),
|
),
|
||||||
negativeChanges: negativeData.hits.filter(
|
negativeChanges: negativeData.hits.filter(
|
||||||
(c) => c && c.probChanges.day < 0
|
(c) => c.probChanges && c.probChanges.day < 0
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user