Fix loans bug
This commit is contained in:
parent
4406e53121
commit
8029ee49a4
|
@ -118,7 +118,7 @@ const getFreeResponseContractLoanUpdate = (
|
||||||
contract: FreeResponseContract | MultipleChoiceContract,
|
contract: FreeResponseContract | MultipleChoiceContract,
|
||||||
bets: Bet[]
|
bets: Bet[]
|
||||||
) => {
|
) => {
|
||||||
const openBets = bets.filter((bet) => bet.isSold || bet.sale)
|
const openBets = bets.filter((bet) => !bet.isSold && !bet.sale)
|
||||||
|
|
||||||
return openBets.map((bet) => {
|
return openBets.map((bet) => {
|
||||||
const loanAmount = bet.loanAmount ?? 0
|
const loanAmount = bet.loanAmount ?? 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user