Skip to content

Commit 560c7b2

Browse files
committed
fix: add identifiers to drep voting power query keys
1 parent 8e02245 commit 560c7b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

govtool/frontend/src/hooks/queries/useGetDRepVotingPowerList.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export const useGetDRepVotingPowerList = () => {
1616
enabled: false,
1717
});
1818

19-
const fetchDRepVotingPowerList = async (identifiers: string[]) =>
19+
const fetchDRepVotingPowerList = async (identifiers: string[] = []) =>
2020
queryClient.fetchQuery({
21-
queryKey: [QUERY_KEYS.useGetDRepVotingPowerListKey],
21+
queryKey: [QUERY_KEYS.useGetDRepVotingPowerListKey, ...identifiers],
2222
queryFn: () => getDRepVotingPowerList(identifiers),
2323
});
2424

0 commit comments

Comments
 (0)