Skip to content

Commit

Permalink
Merge pull request #4794 from Giveth/GIVfarm-APRs-on-other-chains-sho…
Browse files Browse the repository at this point in the history
…uld-show-up-when-connected-to-any-chain-#4593

Givfarm aprs on other chains should show up when connected to any chain
  • Loading branch information
RamRamez authored Oct 1, 2024
2 parents cb2a533 + 8b5a9e7 commit cefab3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "givethdapp",
"version": "2.32.1",
"version": "2.32.2",
"private": true,
"scripts": {
"build": "next build",
Expand Down
7 changes: 4 additions & 3 deletions src/hooks/useStakingPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit cefab3e

Please sign in to comment.