From 1d1df3f807bb3fd8a1b97e8aed5964fd7fff97b3 Mon Sep 17 00:00:00 2001 From: agrippa Date: Wed, 13 Sep 2023 12:52:12 -0400 Subject: [PATCH] params view minor fix (#1821) --- .../[symbol]/params/components/ParamsView.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pages/dao/[symbol]/params/components/ParamsView.tsx b/pages/dao/[symbol]/params/components/ParamsView.tsx index d64dede9c4..2db0dbe9fe 100644 --- a/pages/dao/[symbol]/params/components/ParamsView.tsx +++ b/pages/dao/[symbol]/params/components/ParamsView.tsx @@ -40,6 +40,19 @@ const ParamsView = ({ activeGovernance }) => { ) : 'calculating...' + const minCouncilTokensToCreateProposal = activeGovernance?.account?.config + ?.minCouncilTokensToCreateProposal + ? mint && + DISABLED_VOTER_WEIGHT.eq( + activeGovernance.account.config.minCouncilTokensToCreateProposal + ) + ? 'Disabled' + : fmtMintAmount( + mint, + activeGovernance?.account?.config?.minCouncilTokensToCreateProposal + ) + : 'calculating...' + return ( <> {activeGovernance && ( @@ -66,10 +79,7 @@ const ParamsView = ({ activeGovernance }) => { )}