Filter out markets with undefined probChanges in dev

This commit is contained in:
James Grugett 2022-09-23 18:58:05 -04:00
parent d990bc2f07
commit 21c7130d3b

View File

@ -41,7 +41,7 @@ export const useProbChanges = (
const hits = uniqBy(
[...positiveChanges.hits, ...negativeChanges.hits],
(c) => c.id
)
).filter((c) => c.probChanges)
return sortBy(hits, (c) => Math.abs(c.probChanges.day)).reverse()
}