From 4913b24274d19e294b03aba569159a2a54e27aa4 Mon Sep 17 00:00:00 2001 From: Corey Date: Tue, 7 Nov 2023 15:15:41 -0300 Subject: [PATCH 1/2] fix: remove properties not available from the schema [schema](https://github.com/ArtBlocks/artblocks-subgraph/blob/main/schema.graphql#L425) --- src/hooks/useOwnedProjects.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hooks/useOwnedProjects.tsx b/src/hooks/useOwnedProjects.tsx index cafc637..26c5649 100644 --- a/src/hooks/useOwnedProjects.tsx +++ b/src/hooks/useOwnedProjects.tsx @@ -56,12 +56,9 @@ const ownedProjectsQuery = (walletAddress: string, { first, skip, orderDirection } minterConfiguration { basePrice - startPrice priceIsConfigured currencySymbol currencyAddress - startTime - endTime } } }` From fdc6d9a20bcc4ae2812277e4f83f55843254393e Mon Sep 17 00:00:00 2001 From: Corey Date: Tue, 7 Nov 2023 15:17:23 -0300 Subject: [PATCH 2/2] fix: Stringify obj useEffect deps for comparisons --- src/components/OwnedProjects.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/OwnedProjects.tsx b/src/components/OwnedProjects.tsx index f8d1ec8..451abc8 100644 --- a/src/components/OwnedProjects.tsx +++ b/src/components/OwnedProjects.tsx @@ -38,7 +38,7 @@ const OwnedProjects = ({ walletAddress }: Props) => { setCountOwnedProjects(countOwnedProjectsResponse.data?.projects?.filter((project: { tokens: string | any[] }) => { return project.tokens.length > 0 }).length) - }, [data, countOwnedProjectsResponse]) + }, [JSON.stringify(data), JSON.stringify(filteredProjects), JSON.stringify(countOwnedProjectsResponse)]) return (