Reimbursements

This commit is contained in:
Sebastien Castiel
2023-12-06 20:21:26 -05:00
parent 6ce2329f5c
commit 57899b0160
9 changed files with 62 additions and 14 deletions

View File

@@ -54,7 +54,6 @@ export function getSuggestedReimbursements(
([participantId, { total }]) => ({ participantId, total }),
)
balancesArray.sort((b1, b2) => b2.total - b1.total)
console.log(balancesArray)
const reimbursements: Reimbursement[] = []
while (balancesArray.length > 1) {
const first = balancesArray[0]