Skip to content

Commit

Permalink
Add missing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MeenaAlfons committed Aug 12, 2022
1 parent 23410ae commit e48d96f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ export default class UserFacade extends EventsDispatcher {
}

private _newSigninPromiseIfNeeded() {
if (!this.signin_requested) {
return;
}

// If there is a promise and it is not resolved, return without creating a new one.
if (this.signinDonePromise && !(this.signinDonePromise as any).done) {
return;
Expand Down

0 comments on commit e48d96f

Please sign in to comment.