Skip to content

Commit

Permalink
fix: fallback to proposeSpend if spendLocal is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
ap211unitech committed Jan 31, 2025
1 parent e1f913e commit 2b12e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/page-treasury/src/Overview/ProposalCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function Propose ({ className }: Props): React.ReactElement<Props> | null {
label={t('Submit proposal')}
onStart={toggleOpen}
params={[value, beneficiary]}
tx={api.tx.treasury.spendLocal}
tx={api.tx.treasury.spendLocal ?? api.tx.treasury.proposeSpend}
/>
</Modal.Actions>
</Modal>
Expand Down

0 comments on commit 2b12e90

Please sign in to comment.