diff --git a/packages/loot-core/src/server/main.ts b/packages/loot-core/src/server/main.ts index d45d404dbb9..30f2aab2a8a 100644 --- a/packages/loot-core/src/server/main.ts +++ b/packages/loot-core/src/server/main.ts @@ -711,13 +711,9 @@ handlers['simplefin-accounts-link'] = async function ({ }) { let id; - let institution = externalAccount.institution; - - if (institution == null) { - institution = { - name: 'Unknown', - }; - } + let institution = { + name: externalAccount.institution ?? 'Unknown', + }; const bank = await link.findOrCreateBank( institution,