Explorar o código

fix: added nullsafe operator to patch home error because of initialization issues

Karl Heitmann %!s(int64=2) %!d(string=hai) anos
pai
achega
49b312e7e0
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>