Skip to content

Commit

Permalink
fix open create poposal page when not logged in (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoncalves authored Jul 22, 2024
1 parent ac27533 commit 04dd123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/proposals/hooks/useVotingPower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const useVotingPower = () => {
],
})

if (isLoading) {
if (isLoading || !data) {
return {
isLoading: true,
isLoading,
votingPower: '-',
canCreateProposal: false,
threshold: undefined,
Expand Down

0 comments on commit 04dd123

Please sign in to comment.