Fix bug part 2

This commit is contained in:
James Grugett 2022-09-17 20:01:00 -05:00
parent 2166169608
commit 987274ad2d

View File

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