Skip to content

Commit

Permalink
Add balance
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 6, 2024
1 parent a24272f commit f294e90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/engine/src/providers/gocardless/gocardless-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export class GoCardLessApi {
);

const foundInterimAvailable = balances?.find(
(account) => account.balanceType === "interimAvailable",
(account) =>
account.balanceType === "interimAvailable" ||
account.balanceType === "interimBooked",
);

// For some accounts, the interimAvailable balance is 0, so we need to use the expected balance
Expand Down

0 comments on commit f294e90

Please sign in to comment.