1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Prefer Passed In UserId (#8602)

This commit is contained in:
Justin Baur
2024-04-10 17:55:20 -05:00
committed by GitHub
parent e4720de62a
commit 16c289d680

View File

@@ -1188,7 +1188,7 @@ export default class MainBackground {
await this.searchService.clearIndex();
}
await this.stateEventRunnerService.handleEvent("logout", currentUserId as UserId);
await this.stateEventRunnerService.handleEvent("logout", userId);
if (newActiveUser != null) {
// we have a new active user, do not continue tearing down application