From de85e712fe9cb8c8d37c074f7e605b4a213786fe Mon Sep 17 00:00:00 2001 From: Zach Whelchel Date: Thu, 18 Jan 2024 20:11:38 -0500 Subject: [PATCH] Hotfix for institution format. --- packages/loot-core/src/server/main.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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,