Skip to content

Commit

Permalink
fixed the stakinghook
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed Oct 15, 2024
1 parent 4d65128 commit 1ad598c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/hooks/usePushStakingStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const usePushStakingStats = () => {
// retry: 2,
// });

const { data: pushPoolStats } = useQuery({
const { data: userDataPush } = useQuery({
queryKey: ['pushPoolStats'],
enabled: !!provider,
enabled: !!provider && !!pushCoreV2,
// @ts-expect-error
queryFn: () => YieldFarmingDataStoreV2.getInstance().getUserDataPUSH(provider),
staleTime: Infinity,
Expand Down Expand Up @@ -113,6 +113,6 @@ export const usePushStakingStats = () => {
// lpPoolStats,
// userDataLP,
// userDataPush,
pushPoolStats,
pushPoolStats: userDataPush?.[0],
};
};

0 comments on commit 1ad598c

Please sign in to comment.