From 7f1a320ef754dfb070a9639d0cfddc465f85cebc Mon Sep 17 00:00:00 2001 From: Yana Date: Wed, 18 Jun 2025 20:25:31 +0300 Subject: [PATCH] Fix redeem rewards disabled button --- explorer-v2/src/app/api/index.tsx | 1 - explorer-v2/src/components/staking/SubHeaderRowActions.tsx | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/explorer-v2/src/app/api/index.tsx b/explorer-v2/src/app/api/index.tsx index 3234cd21e8..4a4f8a3e4f 100644 --- a/explorer-v2/src/app/api/index.tsx +++ b/explorer-v2/src/app/api/index.tsx @@ -379,7 +379,6 @@ export const fetchDelegations = async ( nymClient: any ): Promise => { const data = await nymClient.getDelegatorDelegations({ delegator: address }); - console.log("data", data); return data.delegations; }; diff --git a/explorer-v2/src/components/staking/SubHeaderRowActions.tsx b/explorer-v2/src/components/staking/SubHeaderRowActions.tsx index 4aac9c6cb1..d70c136616 100644 --- a/explorer-v2/src/components/staking/SubHeaderRowActions.tsx +++ b/explorer-v2/src/components/staking/SubHeaderRowActions.tsx @@ -69,6 +69,7 @@ const SubHeaderRowActions = () => { refetchOnReconnect: false, }); + const handleRefetch = useCallback(async () => { await refetch(); await queryClient.invalidateQueries(); // This will refetch ALL active queries @@ -165,7 +166,7 @@ const SubHeaderRowActions = () => {