diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 2fd8cca0..7fccc2c0 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -177,10 +177,13 @@ export function BetsList(props: { user: User }) { function MyContractBets(props: { contract: Contract; bets: Bet[] }) { const { bets, contract } = props - const { resolution } = contract + const { resolution, outcomeType } = contract const [collapsed, setCollapsed] = useState(true) + + const isBinary = outcomeType === 'BINARY' const probPercent = getBinaryProbPercent(contract) + return (
- {resolution ? ( -
- Resolved -
- ) : ( -
{probPercent}
+ {isBinary && ( + <> + {resolution ? ( +
+ Resolved +
+ ) : ( +
{probPercent}
+ )} +
+ )} -
!b.isSold && !b.sale) const betsTotal = _.sumBy(excludeSales, (bet) => bet.amount) @@ -345,10 +352,16 @@ export function MyBetsSummary(props: {
- Payout at{' '} - - {formatPercent(getProbability(contract.totalShares))} - + {isBinary ? ( + <> + Payout at{' '} + + {formatPercent(getProbability(contract.totalShares))} + + + ) : ( + <>Current payout + )}
{formatMoney(marketWinnings)}