Filter out markets with undefined probChanges in dev
This commit is contained in:
parent
d990bc2f07
commit
21c7130d3b
|
@ -41,7 +41,7 @@ export const useProbChanges = (
|
||||||
const hits = uniqBy(
|
const hits = uniqBy(
|
||||||
[...positiveChanges.hits, ...negativeChanges.hits],
|
[...positiveChanges.hits, ...negativeChanges.hits],
|
||||||
(c) => c.id
|
(c) => c.id
|
||||||
)
|
).filter((c) => c.probChanges)
|
||||||
|
|
||||||
return sortBy(hits, (c) => Math.abs(c.probChanges.day)).reverse()
|
return sortBy(hits, (c) => Math.abs(c.probChanges.day)).reverse()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user