From 75a1d606cb25590a38b16e14a8395bce326fce91 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 20 Jul 2022 16:28:25 -0500 Subject: [PATCH] feed bets: show change in prob --- web/components/feed/feed-bets.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/web/components/feed/feed-bets.tsx b/web/components/feed/feed-bets.tsx index 1520e57c..ea73fe7b 100644 --- a/web/components/feed/feed-bets.tsx +++ b/web/components/feed/feed-bets.tsx @@ -113,8 +113,16 @@ export function BetStatusText(props: { truncate="short" />{' '} {isPseudoNumeric - ? ' than ' + formatNumericProbability(bet.probAfter, contract) - : ' at ' + + ? ' from ' + formatNumericProbability(bet.probBefore, contract) + : ' from ' + + formatPercent( + hadPoolMatch || isFreeResponse + ? bet.probBefore + : bet.limitProb ?? bet.probBefore + )} + {isPseudoNumeric + ? ' to ' + formatNumericProbability(bet.probAfter, contract) + : ' to ' + formatPercent( hadPoolMatch || isFreeResponse ? bet.probAfter