Browse Source
Merge pull request #2772 from Budibase/fix/analytics
remove company size logic from the code
gh-pages
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
9 deletions
-
packages/builder/src/stores/portal/auth.js
|
|
|
@ -54,15 +54,13 @@ export function createAuthStore() { |
|
|
|
if (user) { |
|
|
|
analytics.activate().then(() => { |
|
|
|
analytics.identify(user._id, user) |
|
|
|
if (user.size === "100+" || user.size === "10000+") { |
|
|
|
analytics.showChat({ |
|
|
|
email: user.email, |
|
|
|
created_at: user.createdAt || Date.now(), |
|
|
|
name: user.name, |
|
|
|
user_id: user._id, |
|
|
|
tenant: user.tenantId, |
|
|
|
}) |
|
|
|
} |
|
|
|
analytics.showChat({ |
|
|
|
email: user.email, |
|
|
|
created_at: user.createdAt || Date.now(), |
|
|
|
name: user.name, |
|
|
|
user_id: user._id, |
|
|
|
tenant: user.tenantId, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|