Procházet zdrojové kódy

Merge pull request #85 from KarlHeitmann/patch_initialization_error_sponsors

fix: added nullsafe operator to patch home error
Aykut Saraç před 2 roky
rodič
revize
01ab331790
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/components/Sponsors/index.tsx

+ 1 - 1
src/components/Sponsors/index.tsx

@@ -79,7 +79,7 @@ export const Sponsors = () => {
     }
   }, []);
 
-  if (!sponsors?.users.length) return null;
+  if (!sponsors?.users?.length) return null;
 
   return (
     <StyledSponsorsWrapper>