From 04dd1232678ec9d1ae198c37bdab7c56099ca07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Santana=20Gon=C3=A7alves?= Date: Mon, 22 Jul 2024 18:43:08 -0300 Subject: [PATCH] fix open create poposal page when not logged in (#73) --- src/app/proposals/hooks/useVotingPower.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/proposals/hooks/useVotingPower.ts b/src/app/proposals/hooks/useVotingPower.ts index 7d57e352..f51a2046 100644 --- a/src/app/proposals/hooks/useVotingPower.ts +++ b/src/app/proposals/hooks/useVotingPower.ts @@ -25,9 +25,9 @@ export const useVotingPower = () => { ], }) - if (isLoading) { + if (isLoading || !data) { return { - isLoading: true, + isLoading, votingPower: '-', canCreateProposal: false, threshold: undefined,