Skip to content

Commit

Permalink
fix: incentives (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick134-bit authored Nov 10, 2024
1 parent 9090ab7 commit b341d21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Pages/Trade/Incentivize/Incentivize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const Incentivize: FC = () => {
</TabList>
<TabPanels p={4}>
<TabPanel padding={4}>
<IncentivePositionsOverview flows={myFlows} poolId={poolId} />
<IncentivePositionsOverview flows={myFlows} pool={pools?.find((p) => p.pool_id === poolId)} />
</TabPanel>
<TabPanel padding={4}>
<Create poolId={poolId} />
Expand Down
2 changes: 1 addition & 1 deletion components/Pages/Trade/Pools/hooks/usePoolsListQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const usePoolFromListQueryById = ({ poolId }: { poolId: string }) => {
return poolsListQuery.data.poolsById[poolId]
},
{
enabled: Boolean(poolsListQuery.data) && Boolean(poolsListQuery.isLoading),
enabled: Boolean(poolsListQuery.data) && !Boolean(poolsListQuery.isLoading),
staleTime: 2 * 60 * 1000,
cacheTime: 5 * 60 * 1000,
},
Expand Down

0 comments on commit b341d21

Please sign in to comment.