mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
fix(analytics): if user no longer subscriber, blank out sub field
This commit is contained in:
parent
2b8a9ba6b7
commit
8641817d78
1 changed files with 2 additions and 0 deletions
|
|
@ -100,6 +100,8 @@ function _formatUserData (user) {
|
|||
|
||||
if (user.purchased && user.purchased.plan.planId) {
|
||||
properties.subscription = user.purchased.plan.planId;
|
||||
} else {
|
||||
properties.subscription = null;
|
||||
}
|
||||
|
||||
if (user._ABtests) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue