Skip to content

Commit

Permalink
Don't log extra background events (#5134)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Sep 4, 2024
1 parent 39f74ce commit 8860890
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/statsig/statsig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ AppState.addEventListener('change', (state: AppStateStatus) => {
let secondsActive = 0
if (lastActive != null) {
secondsActive = Math.round((performance.now() - lastActive) / 1e3)
lastActive = null
logEvent('state:background:sampled', {
secondsActive,
})
}
lastActive = null
logEvent('state:background:sampled', {
secondsActive,
})
}
})

Expand Down

0 comments on commit 8860890

Please sign in to comment.