Skip to content

Commit

Permalink
Hotfix for institution format.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwhelchel committed Jan 19, 2024
1 parent af154ba commit de85e71
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/loot-core/src/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,13 +711,9 @@ handlers['simplefin-accounts-link'] = async function ({
}) {
let id;

let institution = externalAccount.institution;

if (institution == null) {
institution = {
name: 'Unknown',
};
}
let institution = {

Check warning on line 714 in packages/loot-core/src/server/main.ts

View workflow job for this annotation

GitHub Actions / lint

'institution' is never reassigned. Use 'const' instead
name: externalAccount.institution ?? 'Unknown',
};

const bank = await link.findOrCreateBank(
institution,
Expand Down

0 comments on commit de85e71

Please sign in to comment.