Skip to content

Commit

Permalink
Merge pull request #326 from mprasanjith/bugfix/crash-in-isproposalcr…
Browse files Browse the repository at this point in the history
…eationallowed-hook
  • Loading branch information
mprasanjith committed Sep 19, 2022
2 parents a91f62e + 73f43fe commit 18a1cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/Guilds/Hooks/useIsProposalCreationAllowed.tsx
Expand Up @@ -14,7 +14,7 @@ const useIsProposalCreationAllowed = () => {
});

const isProposalCreationAllowed = useMemo(() => {
if (!guildConfig || !votingPower) {
if (!guildConfig?.votingPowerForProposalCreation || !votingPower) {
return false;
}
if (votingPower.gte(guildConfig.votingPowerForProposalCreation)) {
Expand Down

0 comments on commit 18a1cac

Please sign in to comment.