Skip to content

Commit

Permalink
fix: Crash due to ethers receiving null value.
Browse files Browse the repository at this point in the history
  • Loading branch information
mprasanjith committed Sep 19, 2022
1 parent a91f62e commit 73f43fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/Guilds/Hooks/useIsProposalCreationAllowed.tsx
Original file line number Diff line number Diff line change
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 73f43fe

Please sign in to comment.