From 0c46e1bd33561372826311986ead5d9478f92894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Sworze=C5=84?= Date: Fri, 23 Feb 2024 12:46:10 +0100 Subject: [PATCH] add keys --- .../frontend/src/hooks/queries/useGetDRepVotingPowerQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govtool/frontend/src/hooks/queries/useGetDRepVotingPowerQuery.ts b/govtool/frontend/src/hooks/queries/useGetDRepVotingPowerQuery.ts index 48729a672..5df7a3af1 100644 --- a/govtool/frontend/src/hooks/queries/useGetDRepVotingPowerQuery.ts +++ b/govtool/frontend/src/hooks/queries/useGetDRepVotingPowerQuery.ts @@ -8,7 +8,7 @@ export const useGetDRepVotingPowerQuery = () => { const { dRepID, dRep } = useCardano(); const { data, isLoading } = useQuery({ - queryKey: QUERY_KEYS.useGetDRepVotingPowerKey, + queryKey: [QUERY_KEYS.useGetDRepVotingPowerKey, dRepID, dRep?.isRegistered], queryFn: async () => { return await getDRepVotingPower({ dRepID }); },