瀏覽代碼

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>