diff --git a/src/libs/ActiveClientManager/index.js b/src/libs/ActiveClientManager/index.js index 908a500d6b72..8eca45209044 100644 --- a/src/libs/ActiveClientManager/index.js +++ b/src/libs/ActiveClientManager/index.js @@ -29,6 +29,10 @@ function isReady() { Onyx.connect({ key: ONYXKEYS.ACTIVE_CLIENTS, callback: (val) => { + if (!val) { + return; + } + activeClients = val; // Remove from the beginning of the list any clients that are past the limit, to avoid having thousands of them