From 3857dd69c4e62f400b1d5e1aa34f720961710311 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 2 Feb 2024 16:53:31 +0100 Subject: [PATCH] Fix authService.logOut not being called (#7790) --- apps/desktop/src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/app/app.component.ts b/apps/desktop/src/app/app.component.ts index ba558152b03..ac34bb17a94 100644 --- a/apps/desktop/src/app/app.component.ts +++ b/apps/desktop/src/app/app.component.ts @@ -558,7 +558,7 @@ export class AppComponent implements OnInit, OnDestroy { // This must come last otherwise the logout will prematurely trigger // a process reload before all the state service user data can be cleaned up - if (userBeingLoggedOut === this.activeUserId) { + if (userBeingLoggedOut === preLogoutActiveUserId) { this.searchService.clearIndex(); this.authService.logOut(async () => { if (expired) {