diff --git a/src/injected.ts b/src/injected.ts index 8eb5b5f81c..136d4b3a0e 100644 --- a/src/injected.ts +++ b/src/injected.ts @@ -99,6 +99,7 @@ const start = (): void => { Tracker.autorun(() => { const uid = Meteor.userId(); + if (!uid) return; const isAutoAwayEnabled: unknown = getUserPreference(uid, 'enableAutoAway'); const idleThreshold: unknown = getUserPreference(uid, 'idleTimeLimit');