Skip to content

Commit

Permalink
params view minor fix (solana-labs#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
asktree authored Sep 13, 2023
1 parent d8e38d3 commit 1d1df3f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pages/dao/[symbol]/params/components/ParamsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand All @@ -66,10 +79,7 @@ const ParamsView = ({ activeGovernance }) => {
<AddressField
label="Min council tokens to create a proposal"
padding
val={fmtMintAmount(
councilMint,
activeGovernance.account.config.minCouncilTokensToCreateProposal
)}
val={minCouncilTokensToCreateProposal}
/>
)}
<NumberField
Expand Down

0 comments on commit 1d1df3f

Please sign in to comment.