diff --git a/libs/common/src/platform/services/state.service.ts b/libs/common/src/platform/services/state.service.ts index 4138eacfd7..5fb907f550 100644 --- a/libs/common/src/platform/services/state.service.ts +++ b/libs/common/src/platform/services/state.service.ts @@ -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