Skip to content

Commit

Permalink
fix: do not fetch leaderboard if no wallet connected
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed May 29, 2024
1 parent 01b0130 commit 98961d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useLeaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const useOwnCampaignRank = (resourceId: string | undefined) => {
const gatewayBaseUrl = useGatewayBaseUrl()

const getKey = (resourceId: string | undefined) => {
if (!resourceId) {
if (!resourceId || !address) {
return null
}
// Load next page
Expand Down

0 comments on commit 98961d2

Please sign in to comment.