Prechádzať zdrojové kódy

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

[hotfix] check if accounts exists when rendering
abelanger5 4 rokov pred
rodič
commit
df0d0890d6

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

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