mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #5064 from overleaf/ab-analytics-smoke-check
Add null check for smoke test user in analytics manager GitOrigin-RevId: 2ece12f1a674943577ecee272435df535225ec9e
This commit is contained in:
parent
3577f25ba2
commit
dd018be499
1 changed files with 5 additions and 1 deletions
|
@ -178,7 +178,11 @@ function _setUserProperty({ analyticsId, propertyName, propertyValue }) {
|
|||
|
||||
function _isSmokeTestUser(userId) {
|
||||
const smokeTestUserId = Settings.smokeTest && Settings.smokeTest.userId
|
||||
return smokeTestUserId != null && userId.toString() === smokeTestUserId
|
||||
return (
|
||||
smokeTestUserId != null &&
|
||||
userId != null &&
|
||||
userId.toString() === smokeTestUserId
|
||||
)
|
||||
}
|
||||
|
||||
function _isAnalyticsDisabled() {
|
||||
|
|
Loading…
Reference in a new issue