Skip to content

Commit

Permalink
Merge pull request #1309 from AmbireTech/bug/entry-point-auth-window-…
Browse files Browse the repository at this point in the history
…close-behaviour

Bug/ Closing entry point authorization request window doesn't reject the queued transaction
  • Loading branch information
PetromirDev authored Feb 18, 2025
2 parents 4c5df8a + 3c88994 commit 6846ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ export class MainController extends EventEmitter {
(r) => r.action.kind !== 'calls'
)
userRequestsToRejectOnWindowClose.forEach((r) =>
r.dappPromise?.reject(ethErrors.provider.userRejectedRequest())
this.rejectUserRequest(ethErrors.provider.userRejectedRequest().message, r.id)
)
this.userRequests = this.userRequests.filter((r) => r.action.kind === 'calls')

this.userRequestWaitingAccountSwitch = []
this.emitUpdate()
}
Expand Down

0 comments on commit 6846ccf

Please sign in to comment.