This commit is contained in:
@@ -44,8 +44,8 @@ function simplifyDebts(netBalances: Record<ParticipantId, number>): Settlement[]
|
||||
let di = 0
|
||||
|
||||
while (ci < creditors.length && di < debtors.length) {
|
||||
const creditor = creditors[ci]
|
||||
const debtor = debtors[di]
|
||||
const creditor = creditors[ci]!
|
||||
const debtor = debtors[di]!
|
||||
const amount = Math.min(creditor.amount, debtor.amount)
|
||||
|
||||
if (amount > 0) {
|
||||
|
||||
Reference in New Issue
Block a user