diff --git a/web/components/feed/feed-bets.tsx b/web/components/feed/feed-bets.tsx index ea73fe7b..408404ba 100644 --- a/web/components/feed/feed-bets.tsx +++ b/web/components/feed/feed-bets.tsx @@ -93,6 +93,24 @@ export function BetStatusText(props: { bet.fills?.some((fill) => fill.matchedBetId === null)) ?? false + const fromProb = + hadPoolMatch || isFreeResponse + ? isPseudoNumeric + ? formatNumericProbability(bet.probBefore, contract) + : formatPercent(bet.probBefore) + : isPseudoNumeric + ? formatNumericProbability(bet.limitProb ?? bet.probBefore, contract) + : formatPercent(bet.limitProb ?? bet.probBefore) + + const toProb = + hadPoolMatch || isFreeResponse + ? isPseudoNumeric + ? formatNumericProbability(bet.probAfter, contract) + : formatPercent(bet.probAfter) + : isPseudoNumeric + ? formatNumericProbability(bet.limitProb ?? bet.probAfter, contract) + : formatPercent(bet.limitProb ?? bet.probAfter) + return (