Fix erronous 0 prob shown in table
This commit is contained in:
parent
ed9a2c0d35
commit
24fac1fc0b
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue
Block a user