Browse Source

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

Karl Heitmann 2 năm trước cách đây
mục cha
commit
49b312e7e0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>