mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Use human readable name
This commit is contained in:
@@ -253,7 +253,7 @@ describe('analytics', function() {
|
||||
contributorLevel: 1,
|
||||
subscription: 'foo-plan',
|
||||
tutorialComplete: true,
|
||||
numberOfTasks: {
|
||||
"Number Of Tasks": {
|
||||
todos: 1,
|
||||
dailys: 1,
|
||||
habits: 1,
|
||||
|
||||
@@ -222,7 +222,7 @@ describe('Analytics Service', function () {
|
||||
contributorLevel: 1,
|
||||
subscription: 'unique-plan-id',
|
||||
tutorialComplete: true,
|
||||
numberOfTasks: {
|
||||
"Number Of Tasks": {
|
||||
todos: 1,
|
||||
dailys: 1,
|
||||
habits: 1,
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
properties.Mana = Math.floor(user.stats.mp);
|
||||
}
|
||||
properties.tutorialComplete = user.flags && user.flags.tour && user.flags.tour.intro === -2;
|
||||
properties.numberOfTasks = {
|
||||
properties["Number Of Tasks"] = {
|
||||
habits: user.habits.length,
|
||||
dailys: user.dailys.length,
|
||||
todos: user.todos.length,
|
||||
|
||||
@@ -153,7 +153,7 @@ function _formatUserData(user) {
|
||||
}
|
||||
|
||||
properties.tutorialComplete = user.flags && user.flags.tour && user.flags.tour.intro === -2;
|
||||
properties.numberOfTasks = {
|
||||
properties["Number Of Tasks"] = {
|
||||
habits: user.habits.length,
|
||||
dailys: user.dailys.length,
|
||||
todos: user.todos.length,
|
||||
|
||||
Reference in New Issue
Block a user