diff --git a/lib/pangea/controllers/my_analytics_controller.dart b/lib/pangea/controllers/my_analytics_controller.dart index 058bad359..12baeb689 100644 --- a/lib/pangea/controllers/my_analytics_controller.dart +++ b/lib/pangea/controllers/my_analytics_controller.dart @@ -229,11 +229,8 @@ class MyAnalyticsController { /// top level analytics sending function. Gather recent messages and activity records, /// convert them into the correct formats, and send them to the analytics room Future _updateAnalytics() async { - // if missing important info, don't send analytics - if (userL2 == null || _client.userID == null) { - debugger(when: kDebugMode); - return; - } + // if missing important info, don't send analytics. Could happen if user just signed up. + if (userL2 == null || _client.userID == null) return; // analytics room for the user and current target language final Room analyticsRoom = await _client.getMyAnalyticsRoom(userL2!);