From 3c02374b396f52f1e05a8b33190752d024026f22 Mon Sep 17 00:00:00 2001 From: jeremy-babylonchain Date: Fri, 13 Sep 2024 17:06:55 +0800 Subject: [PATCH] resolve comments --- src/app/components/Delegations/Delegations.tsx | 1 + src/app/context/api/DelegationsPointsProvider.tsx | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/components/Delegations/Delegations.tsx b/src/app/components/Delegations/Delegations.tsx index 591a31f6..2a47465e 100644 --- a/src/app/components/Delegations/Delegations.tsx +++ b/src/app/components/Delegations/Delegations.tsx @@ -62,6 +62,7 @@ export const Delegations: React.FC = ({ publicKeyNoCoord={publicKeyNoCoord} delegationsAPI={delegationsAPI} isWalletConnected={isWalletConnected} + address={address} > = ({ children, publicKeyNoCoord, delegationsAPI, isWalletConnected }) => { +> = ({ + children, + publicKeyNoCoord, + delegationsAPI, + isWalletConnected, + address, +}) => { const [delegationPoints, setDelegationPoints] = useState>( new Map(), ); @@ -59,7 +66,7 @@ export const DelegationsPointsProvider: React.FC< }; const { data, isLoading, error } = useQuery({ - queryKey: ["delegationPoints", publicKeyNoCoord, delegationsAPI], + queryKey: ["delegationPoints", address, publicKeyNoCoord], queryFn: fetchAllPoints, enabled: isWalletConnected &&