1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

options is nullable while setting user key

This commit is contained in:
Jacob Fink 2023-06-27 11:58:05 -04:00
parent 230532875b
commit 2efec1d880
No known key found for this signature in database
GPG Key ID: C2F7ACF05859D008

View File

@ -581,7 +581,7 @@ export class StateService<
this.reconcileOptions(options, await this.defaultInMemoryOptions())
);
if (options.userId == this.activeAccountSubject.getValue()) {
if (options?.userId == this.activeAccountSubject.getValue()) {
const nextValue = value != null;
// Avoid emitting if we are already unlocked