소스 검색

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

Karl Heitmann 2 년 전
부모
커밋
49b312e7e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>