Skip to content

Commit

Permalink
Send any beforeTransactionError error data to embed-ui (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-gr4vy authored Jun 2, 2024
1 parent 370f536 commit 3ba4e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/embed/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ export function setup(setupConfig: SetupConfig) {
]),
})
})
.catch(() => {
.catch((error) => {
dispatch({
type: 'beforeTransactionError',
data: { beforeTransactionError: error },
})
})
}
Expand Down

0 comments on commit 3ba4e6d

Please sign in to comment.