1
0
Fork 0
mirror of synced 2024-06-01 18:20:18 +12:00

remove company size logic from the code

This commit is contained in:
Martin McKeaveney 2021-09-28 17:18:56 +01:00
parent 2895af8ec1
commit 1ef55a2419

View file

@ -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,
})
})
}
}