From 58607aff62d7354a66849e2f280ac8cde9b6f70a Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Fri, 2 Sep 2022 16:00:10 -0600 Subject: [PATCH] undo loans change? --- common/loans.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/loans.ts b/common/loans.ts index e05f1c2a..05b64474 100644 --- a/common/loans.ts +++ b/common/loans.ts @@ -118,7 +118,7 @@ const getFreeResponseContractLoanUpdate = ( contract: FreeResponseContract | MultipleChoiceContract, bets: Bet[] ) => { - const openBets = bets.filter((bet) => !bet.isSold && !bet.sale) + const openBets = bets.filter((bet) => bet.isSold || bet.sale) return openBets.map((bet) => { const loanAmount = bet.loanAmount ?? 0