Merge pull request #3058 from overleaf/jel-feature-zotero

Verify features exist before checking for Zotero feature

GitOrigin-RevId: 9f1afddb6fb59d50f13b8ac7772fe93ae5d0ba04
This commit is contained in:
Jessica Lawshe 2020-07-27 10:32:56 -05:00 committed by Copybot
parent 305f82459f
commit fa9c72c202

View file

@ -772,7 +772,8 @@ const ProjectController = {
metrics.inc(metricName)
const enableOptimize =
!!Settings.experimentId && !user.features.zotero
!!Settings.experimentId &&
(user.features && !user.features.zotero)
if (userId) {
AnalyticsManager.recordEvent(userId, 'project-opened', {