Skip to content

Commit

Permalink
♻️ Reenable pending signature status (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
yivlad committed Mar 1, 2023
1 parent aab8430 commit 45dd6bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-windows-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@usedapp/core': patch
---

Reenable pending signature status
2 changes: 1 addition & 1 deletion packages/core/src/hooks/usePromiseTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ export function usePromiseTransaction(chainId: number | undefined, options?: Tra
if (!chainId) return
let transaction: TransactionResponse | undefined = undefined
try {
setState({ status: 'PendingSignature', chainId, transactionName: options?.transactionName })
if (options?.enablePendingSignatureNotification) {
setState({ status: 'PendingSignature', chainId, transactionName: options?.transactionName })
addNotification({
notification: {
type: 'transactionPendingSignature',
Expand Down

2 comments on commit 45dd6bd

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

@github-actions
Copy link
Contributor

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.