From a0833b4764be9fbc66ecd28929116d11f902728b Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 9 Mar 2022 23:23:43 -0600 Subject: [PATCH] filter out redemption bets --- web/components/contract-prob-graph.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/contract-prob-graph.tsx b/web/components/contract-prob-graph.tsx index 727927b5..9158f8db 100644 --- a/web/components/contract-prob-graph.tsx +++ b/web/components/contract-prob-graph.tsx @@ -14,7 +14,9 @@ export function ContractProbGraph(props: { const { contract } = props const { resolutionTime, closeTime } = contract - const bets = useBetsWithoutAntes(contract, props.bets) + const bets = useBetsWithoutAntes(contract, props.bets).filter( + (b) => !b.isRedemption + ) const startProb = getInitialProbability(contract)