Ensure safeguard against treasury send functions (#11247)

This commit is contained in:
Tarik Gul 2025-01-31 05:55:43 -08:00 committed by GitHub
parent 35ef741632
commit 2791ec13ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,9 +28,13 @@ function Overview ({ className, isMember, members }: Props): React.ReactElement<
approvalCount={info?.approvals.length}
proposalCount={info?.proposals.length}
/>
<Button.Group>
<ProposalCreate />
</Button.Group>
{
api.tx.treasury.proposeSpend || !!api.tx.treasury.spendLocal
? <Button.Group>
<ProposalCreate />
</Button.Group>
: <></>
}
<Proposals
isMember={isMember}
members={members}