Require proposalWeight/Length for close (#6398)
This commit is contained in:
parent
dabd965d3c
commit
2da9af03ba
@ -57,6 +57,7 @@ function Close ({ hasFailed, hash, idNumber, proposal }: Props): React.ReactElem
|
||||
<Modal.Actions>
|
||||
<TxButton
|
||||
accountId={accountId}
|
||||
isDisabled={!hasFailed && !proposalLength}
|
||||
onStart={toggleOpen}
|
||||
params={
|
||||
api.tx[modLocation].close.meta.args.length === 4
|
||||
|
||||
@ -57,6 +57,7 @@ function Close ({ hasFailed, hash, idNumber, proposal, type }: Props): React.Rea
|
||||
<Modal.Actions>
|
||||
<TxButton
|
||||
accountId={accountId}
|
||||
isDisabled={!hasFailed && !proposalLength}
|
||||
onStart={toggleOpen}
|
||||
params={
|
||||
api.tx[modLocation].close.meta.args.length === 4
|
||||
|
||||
Loading…
Reference in New Issue
Block a user