From b341d21505e6a527feab9a131177d80211c01ed5 Mon Sep 17 00:00:00 2001 From: nick134 <76399455+nick134-bit@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:49:30 +0100 Subject: [PATCH] fix: incentives (#599) --- components/Pages/Trade/Incentivize/Incentivize.tsx | 2 +- components/Pages/Trade/Pools/hooks/usePoolsListQuery.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Pages/Trade/Incentivize/Incentivize.tsx b/components/Pages/Trade/Incentivize/Incentivize.tsx index b988ba6b..1cdb2e73 100644 --- a/components/Pages/Trade/Incentivize/Incentivize.tsx +++ b/components/Pages/Trade/Incentivize/Incentivize.tsx @@ -113,7 +113,7 @@ const Incentivize: FC = () => { - + p.pool_id === poolId)} /> diff --git a/components/Pages/Trade/Pools/hooks/usePoolsListQuery.ts b/components/Pages/Trade/Pools/hooks/usePoolsListQuery.ts index ec9a8c7e..a73edb8d 100644 --- a/components/Pages/Trade/Pools/hooks/usePoolsListQuery.ts +++ b/components/Pages/Trade/Pools/hooks/usePoolsListQuery.ts @@ -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, },