Skip to content

Commit

Permalink
Merge pull request Expensify#11539 from Expensify/cmartins-earlyRetur…
Browse files Browse the repository at this point in the history
…nActiveClients

Add early return to ActiveClientManager
  • Loading branch information
sketchydroide authored Oct 3, 2022
2 parents aa75ddc + 43fe2f9 commit 4c35ac5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/ActiveClientManager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c35ac5

Please sign in to comment.