1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

Merge pull request #2772 from Budibase/fix/analytics

remove company size logic from the code
This commit is contained in:
Martin McKeaveney 2021-09-28 17:27:32 +01:00 committed by GitHub
commit b1cb39d3f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,6 @@ export function createAuthStore() {
if (user) { if (user) {
analytics.activate().then(() => { analytics.activate().then(() => {
analytics.identify(user._id, user) analytics.identify(user._id, user)
if (user.size === "100+" || user.size === "10000+") {
analytics.showChat({ analytics.showChat({
email: user.email, email: user.email,
created_at: user.createdAt || Date.now(), created_at: user.createdAt || Date.now(),
@ -62,7 +61,6 @@ export function createAuthStore() {
user_id: user._id, user_id: user._id,
tenant: user.tenantId, tenant: user.tenantId,
}) })
}
}) })
} }
} }