Merge branch 'main' into feature/google-signin-signup-integration

This commit is contained in:
Sheen Capadngan
2023-05-28 22:12:02 +08:00
97 changed files with 2555 additions and 2090 deletions
@@ -137,7 +137,7 @@ const attemptLogin = async (
}
if (email) {
telemetry.identify(email);
telemetry.identify(email, email);
telemetry.capture('User Logged In');
}
@@ -22,10 +22,12 @@ class Capturer {
}
}
identify(id: string) {
identify(id: string, email?: string) {
if (ENV === 'production' && TELEMETRY_CAPTURING_ENABLED) {
try {
this.api.identify(id);
this.api.identify(id, {
email: email
});
} catch (error) {
console.error('PostHog', error);
}