Skip to content

Commit

Permalink
Fixed different tokens in gov spend prop. (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jul 13, 2023
1 parent 1e2362d commit b03b4ba
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ export const GovernanceProposalComponent: ActionComponent<
<div className="flex flex-row flex-wrap items-end justify-between gap-6">
<div className="flex grow flex-col gap-1">
<div className="flex flex-col items-stretch gap-2">
{spendFields.map(({ id, denom }, index) => {
{spendFields.map(({ id }, index) => {
const denom = watch(
(fieldNamePrefix +
`spends.${index}.denom`) as `spends.${number}.denom`
)
const selectedToken = availableTokens.find(
({ denomOrAddress }) => denomOrAddress === denom
)
Expand Down

2 comments on commit b03b4ba

@vercel
Copy link

@vercel vercel bot commented on b03b4ba Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on b03b4ba Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.