Skip to content

Commit

Permalink
Merge branch 'develop' into release-2.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Oct 1, 2024
2 parents 1d559c8 + 78554a2 commit 3ae4467
Showing 1 changed file with 4 additions and 3 deletions.
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 3ae4467

Please sign in to comment.