Skip to content

Commit

Permalink
fix: return data in top voters hook (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
1emu committed Sep 11, 2023
1 parent 9536338 commit 2d24dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useTopVoters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function useTopVoters(start: Date, end: Date, limit?: number) {
const { data: votes, isLoading } = useQuery({
queryKey: [`topVoters#${start}#${end}`],
queryFn: async () => {
await Governance.get().getTopVoters(start, end, limit)
return await Governance.get().getTopVoters(start, end, limit)
},
staleTime: FIVE_MINUTES_MS,
})
Expand Down

0 comments on commit 2d24dee

Please sign in to comment.