diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index fff0975e..7c6e5ffe 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -82,7 +82,8 @@ export function BetsList(props: { user: User }) { if (bet.isSold || bet.sale) return 0 const contract = contracts.find((c) => c.id === contractId) - return contract ? calculatePayout(contract, bet, 'MKT') : 0 + const payout = contract ? calculatePayout(contract, bet, 'MKT') : 0 + return payout - (bet.loanAmount ?? 0) }) } ) @@ -137,7 +138,7 @@ export function BetsList(props: { user: User }) {