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 authored Aug 31, 2023
1 parent bd4b494 commit 5c48586
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 5c48586

Please sign in to comment.