Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

fix: update group query to include permission checks for address

yoginth.com ec5dbfb9 ac64480d

verified
+2 -2
+2 -2
apps/web/src/components/Group/index.tsx
··· 1 - import { STATIC_IMAGES_URL } from "@hey/data/constants"; 1 + import { PERMISSIONS, STATIC_IMAGES_URL } from "@hey/data/constants"; 2 2 import { useGroupQuery } from "@hey/indexer"; 3 3 import { useParams } from "react-router"; 4 4 import NewPost from "@/components/Composer/NewPost"; ··· 17 17 const { currentAccount } = useAccountStore(); 18 18 19 19 const { data, loading, error } = useGroupQuery({ 20 - skip: !address, 20 + skip: !address || Object.values(PERMISSIONS).includes(address as any), 21 21 variables: { request: { group: address } } 22 22 }); 23 23