From 719ae1c89d147abc2d75c697c065a0d2b5e45362 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sat, 30 May 2015 23:10:44 -0500 Subject: [PATCH] Add missing ?; common tests pass --- common/script/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/script/index.coffee b/common/script/index.coffee index 7a2006ab29..8d0e7b8460 100644 --- a/common/script/index.coffee +++ b/common/script/index.coffee @@ -1635,7 +1635,7 @@ api.wrap = (user, main=true) -> # Analytics user.flags.cronCount?=0 user.flags.cronCount++ - options.mixpanel.track('Cron',{'distinct_id':user._id,'resting':user.preferences.sleep}) + options.mixpanel?.track('Cron',{'distinct_id':user._id,'resting':user.preferences.sleep}) options.ga?.event('behavior', 'cron', 'cron', user.flags.cronCount).send(); #TODO userId for cohort # After all is said and done, progress up user's effect on quest, return those values & reset the user's