diff --git a/src/injected.ts b/src/injected.ts index e086634304..e186429f53 100644 --- a/src/injected.ts +++ b/src/injected.ts @@ -94,6 +94,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');