Skip to content

Commit

Permalink
fix: reset button (#450)
Browse files Browse the repository at this point in the history
* fix: `Button.Reset` issue with parsing intents

* chore: changesets
  • Loading branch information
dalechyn authored Jul 26, 2024
1 parent 41218bd commit 368a2a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-peas-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frog": patch
---

Fixed an issue where using `Button.Reset` would lead to "Cannot destructure property 'property' of 'intent.props' as it is undefined." error.
6 changes: 3 additions & 3 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ export function ButtonReset({
// @ts-ignore - private
index = 1,
}: ButtonResetProps): JSX.Element {
return (
return [
<meta
property={`fc:frame:button:${index}`}
content={normalizeChildren(children)}
data-value={buttonPrefix.reset}
data-type="reset"
/>
)
/>,
] as unknown as HtmlEscapedString
}

export type ButtonTransactionProps = ButtonProps & {
Expand Down

0 comments on commit 368a2a9

Please sign in to comment.