Explorar o código

Merge pull request #85 from KarlHeitmann/patch_initialization_error_sponsors

fix: added nullsafe operator to patch home error
Aykut Saraç %!s(int64=2) %!d(string=hai) anos
pai
achega
01ab331790
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>