mirror of
https://github.com/bitwarden/jslib
synced 2026-01-05 01:53:13 +00:00
[bug] Null check in memory account before claiming it has a userId
This commit is contained in:
@@ -1233,7 +1233,7 @@ export class StateService implements StateServiceAbstraction {
|
||||
|
||||
private getUserIdFromMemory(options: StorageOptions): string {
|
||||
return options?.userId != null ?
|
||||
this.state.accounts[options.userId].userId :
|
||||
this.state.accounts[options.userId]?.userId :
|
||||
this.state.activeUserId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user