mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02: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:
committed by
Copybot
parent
3577f25ba2
commit
dd018be499
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user