mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: naming
This commit is contained in:
1 parent
cd2b882957
commit
a8e92f87d2
1 file changed
+4
-3
@@ -34,9 +34,10 @@ export function trackPageView(path: string) {
|
||||
|
||||
function sendEventToGrowth(event: string, path: string, data: object = null): void {
|
||||
let email: string, name: string;
|
||||
if (get(user)) {
|
||||
email = get(user).email;
|
||||
name = get(user).name;
|
||||
const userStore = get(user);
|
||||
if (userStore) {
|
||||
email = userStore.email;
|
||||
name = userStore.name;
|
||||
}
|
||||
fetch('https://growth.appwrite.io/v1/analytics', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in new issue
Block a user