Fix erronous 0 prob shown in table

This commit is contained in:
James Grugett 2022-07-11 15:53:11 -05:00
parent ed9a2c0d35
commit 24fac1fc0b
2 changed files with 6 additions and 2 deletions

View File

@ -669,7 +669,9 @@ function BetRow(props: {
: formatMoney(calculatePayout(contract, bet, bet.outcome))
const hadPoolMatch =
bet.fills?.some((fill) => fill.matchedBetId === null) ?? false
(bet.limitProb === undefined ||
bet.fills?.some((fill) => fill.matchedBetId === null)) ??
false
const ofTotalAmount =
bet.limitProb === undefined || bet.orderAmount === undefined

View File

@ -89,7 +89,9 @@ export function BetStatusText(props: {
const money = formatMoney(Math.abs(amount))
const hadPoolMatch =
bet.fills?.some((fill) => fill.matchedBetId === null) ?? false
(bet.limitProb === undefined ||
bet.fills?.some((fill) => fill.matchedBetId === null)) ??
false
return (
<div className="text-sm text-gray-500">