From 3658c6eee001e52b956c734d14a2f1359b4af9dc Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 6 May 2022 17:31:20 -0400 Subject: [PATCH] Fix probability calc --- web/components/numeric-bet-panel.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/components/numeric-bet-panel.tsx b/web/components/numeric-bet-panel.tsx index 56f91b1a..3fe81f60 100644 --- a/web/components/numeric-bet-panel.tsx +++ b/web/components/numeric-bet-panel.tsx @@ -52,7 +52,8 @@ function NumericBuyPanel(props: { const { min, max } = contract const [bucket, setBucketChoice] = useState(undefined) - const bucketChoice = bucket === undefined ? undefined : `${bucket}` + const bucketChoice = + bucket === undefined ? undefined : `${getMappedBucket(bucket, contract)}` const [betAmount, setBetAmount] = useState(undefined) const [valueError, setValueError] = useState() const [error, setError] = useState() @@ -132,7 +133,7 @@ function NumericBuyPanel(props: { <>
Numeric value