Преглед на файлове

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>