From 73f43fe4bb681e61d6cef840f97410dec35e555a Mon Sep 17 00:00:00 2001 From: Madusha Prasanjith Date: Mon, 19 Sep 2022 23:36:54 +0530 Subject: [PATCH] fix: Crash due to ethers receiving null value. --- src/Modules/Guilds/Hooks/useIsProposalCreationAllowed.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/Guilds/Hooks/useIsProposalCreationAllowed.tsx b/src/Modules/Guilds/Hooks/useIsProposalCreationAllowed.tsx index 7e19aaa01..332830c8e 100644 --- a/src/Modules/Guilds/Hooks/useIsProposalCreationAllowed.tsx +++ b/src/Modules/Guilds/Hooks/useIsProposalCreationAllowed.tsx @@ -14,7 +14,7 @@ const useIsProposalCreationAllowed = () => { }); const isProposalCreationAllowed = useMemo(() => { - if (!guildConfig || !votingPower) { + if (!guildConfig?.votingPowerForProposalCreation || !votingPower) { return false; } if (votingPower.gte(guildConfig.votingPowerForProposalCreation)) {