From 21c7130d3b303adb200d524d722e778ae479f2e3 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 23 Sep 2022 18:58:05 -0400 Subject: [PATCH] Filter out markets with undefined probChanges in dev --- web/hooks/use-prob-changes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/hooks/use-prob-changes.tsx b/web/hooks/use-prob-changes.tsx index f2f3ce13..132cfd64 100644 --- a/web/hooks/use-prob-changes.tsx +++ b/web/hooks/use-prob-changes.tsx @@ -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() }