Skip to content

Commit

Permalink
CR: update
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Jan 27, 2025
1 parent c480eb3 commit 76701ce
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ export const useDappConnectorManager = () => {
reject(userRejectedError())
},
onClose: () => {
if (shouldResolve) reject(userRejectedError())
if (shouldResolve) {
shouldResolve = false
reject(userRejectedError())
}
},
onError: (error) => {
shouldResolve = false
logger.error('useDappConnectorManager::handleSignTx', {error})
reject(error)
},
Expand Down Expand Up @@ -96,6 +100,7 @@ export const useDappConnectorManager = () => {
navigateTo.browseDapp()
},
onError: (error) => {
shouldResolve = false
logger.error('useDappConnectorManager::handleSignTxWithHW', {error})
reject(error)
},
Expand All @@ -106,6 +111,7 @@ export const useDappConnectorManager = () => {
},
onClose: () => {
if (!shouldResolve) return
shouldResolve = false
reject(userRejectedError())
},
})
Expand Down

0 comments on commit 76701ce

Please sign in to comment.