diff --git a/package.json b/package.json index 06a8e127b0..7245d6ee76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "givethdapp", - "version": "2.32.1", + "version": "2.32.2", "private": true, "scripts": { "build": "next build", diff --git a/src/hooks/useStakingPool.ts b/src/hooks/useStakingPool.ts index bfaf467b8b..4f7737c74a 100644 --- a/src/hooks/useStakingPool.ts +++ b/src/hooks/useStakingPool.ts @@ -30,10 +30,11 @@ export const useStakingPool = ( notStakedAmount: 0n, stakedAmount: 0n, }); - const { chain, address } = useAccount(); + const { address } = useAccount(); const currentValues = useQuery({ - queryKey: ['subgraph', chain?.id, address], - queryFn: async () => await fetchSubgraphData(chain?.id, address), + queryKey: ['subgraph', poolStakingConfig.network, address], + queryFn: async () => + await fetchSubgraphData(poolStakingConfig.network, address), enabled: !hold, staleTime: config.SUBGRAPH_POLLING_INTERVAL, });