Skip to content

Commit

Permalink
Add check for proposeSend
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Jan 22, 2025
1 parent 4b91386 commit 3cb17e8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/page-treasury/src/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
? <Button.Group>
<ProposalCreate />
</Button.Group>
: <></>
}
<Proposals
isMember={isMember}
members={members}
Expand Down

0 comments on commit 3cb17e8

Please sign in to comment.