mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(analytics): if user no longer subscriber, blank out sub field
This commit is contained in:
@@ -100,6 +100,8 @@ function _formatUserData (user) {
|
|||||||
|
|
||||||
if (user.purchased && user.purchased.plan.planId) {
|
if (user.purchased && user.purchased.plan.planId) {
|
||||||
properties.subscription = user.purchased.plan.planId;
|
properties.subscription = user.purchased.plan.planId;
|
||||||
|
} else {
|
||||||
|
properties.subscription = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user._ABtests) {
|
if (user._ABtests) {
|
||||||
|
|||||||
Reference in New Issue
Block a user