Skip to content

Commit

Permalink
[web-helpers] Fix issue where WebUser didn't permit re-opening the co…
Browse files Browse the repository at this point in the history
…nnect Modal
  • Loading branch information
Chris committed Dec 12, 2023
1 parent 970b41b commit fa8081c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web-helpers/src/WebUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export class WebUser extends EventEmitter {
// Create a promise that will connect to the network and resolve once complete
// Also pre-populates the user's public profile
const config = this.config
const webUser = this
this.connecting = new Promise(async (resolve, reject) => {
const account = new VaultAccount(config.accountConfig);

Expand All @@ -214,6 +215,7 @@ export class WebUser extends EventEmitter {
if (!context) {
if (config.debug) {
console.log('User cancelled login attempt by closing the QR code modal or an unexpected error occurred');
webUser.connecting = undefined
}

resolve(false)
Expand Down

0 comments on commit fa8081c

Please sign in to comment.