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) {