Pārlūkot izejas kodu

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

Karl Heitmann 2 gadi atpakaļ
vecāks
revīzija
49b312e7e0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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>