From 88f94c669cd04bc215ca487308206401bbc86fbc Mon Sep 17 00:00:00 2001 From: Ramin Date: Sun, 29 Sep 2024 23:49:42 +0330 Subject: [PATCH 1/2] fix NETWORK ID for active pool --- src/hooks/useStakingPool.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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, }); From 8b5a9e7d166306a4a2fc8df880a5ca6142ebe73f Mon Sep 17 00:00:00 2001 From: Ramin Date: Sun, 29 Sep 2024 23:49:55 +0330 Subject: [PATCH 2/2] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",