diff --git a/common/loans.ts b/common/loans.ts index 01a8a790..64742b3e 100644 --- a/common/loans.ts +++ b/common/loans.ts @@ -67,7 +67,7 @@ const calculateLoanBetUpdates = ( const betsByContract = groupBy(bets, (bet) => bet.contractId) const contracts = filterDefined( Object.keys(betsByContract).map((contractId) => contractsById[contractId]) - ) + ).filter((c) => !c.isResolved) const betUpdates = filterDefined( contracts