Преглед изворни кода

check if accounts exists when rendering

Alexander Belanger пре 4 година
родитељ
комит
d4a10863f4
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>
         </>
       )}
-      {!isLoading && accountData?.accounts.length && (
+      {!isLoading && accountData?.accounts?.length && (
         <>
           <Helper>Porter currently has access to:</Helper>
           <List>