Просмотр исходного кода

Merge pull request #1418 from porter-dev/belanger/hot-fix-accounts-production

[hotfix] check if accounts exists when rendering
abelanger5 4 лет назад
Родитель
Сommit
df0d0890d6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      dashboard/src/main/home/onboarding/steps/ConnectSource.tsx

+ 1 - 1
dashboard/src/main/home/onboarding/steps/ConnectSource.tsx

@@ -96,7 +96,7 @@ const ConnectSource: React.FC<{
           </Helper>
           </Helper>
         </>
         </>
       )}
       )}
-      {!isLoading && accountData?.accounts.length && (
+      {!isLoading && accountData?.accounts?.length && (
         <>
         <>
           <Helper>Porter currently has access to:</Helper>
           <Helper>Porter currently has access to:</Helper>
           <List>
           <List>