1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

Fix authService.logOut not being called (#7790)

This commit is contained in:
Oscar Hinton
2024-02-02 16:53:31 +01:00
committed by GitHub
parent e8d0d56c5f
commit 3857dd69c4

View File

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