Parcourir la source

Merge pull request #1416 from porter-dev/belanger/hot-fix-accounts-crash

[hotfix] check if accounts exists when rendering
abelanger5 il y a 4 ans
Parent
commit
b38d05d3fe
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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>