From e48d96f45ea8564aa6b3fa2801721fad81bdc591 Mon Sep 17 00:00:00 2001 From: Meena Alfons Date: Fri, 12 Aug 2022 14:32:36 +0200 Subject: [PATCH] Add missing condition --- src/core/user.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/user.ts b/src/core/user.ts index 54b54ec70..7bb9d637c 100644 --- a/src/core/user.ts +++ b/src/core/user.ts @@ -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;