From a2b01e28c9554594ebe448b920f53bd8e37acb6e Mon Sep 17 00:00:00 2001 From: mantikoros Date: Mon, 19 Sep 2022 16:29:21 -0500 Subject: [PATCH] daily movers: filter out numeric markets --- web/hooks/use-prob-changes.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/hooks/use-prob-changes.tsx b/web/hooks/use-prob-changes.tsx index 3e0e1a1a..b4bd66f6 100644 --- a/web/hooks/use-prob-changes.tsx +++ b/web/hooks/use-prob-changes.tsx @@ -30,12 +30,12 @@ export const useProbChangesAlgolia = (userId: string) => { } return { - positiveChanges: positiveData.hits.filter( - (c) => c.probChanges && c.probChanges.day > 0 - ), - negativeChanges: negativeData.hits.filter( - (c) => c.probChanges && c.probChanges.day < 0 - ), + positiveChanges: positiveData.hits + .filter((c) => c.probChanges && c.probChanges.day > 0) + .filter((c) => c.outcomeType === 'BINARY'), + negativeChanges: negativeData.hits + .filter((c) => c.probChanges && c.probChanges.day < 0) + .filter((c) => c.outcomeType === 'BINARY'), } }