Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): mixpanel error when opt-out (#6861)

EYHNf5dceda0ccb5
diff --git a/packages/frontend/core/src/telemetry.tsx b/packages/frontend/core/src/telemetry.tsx
index 9854f912f5..ba78fcb08f 100644
--- a/packages/frontend/core/src/telemetry.tsx
+++ b/packages/frontend/core/src/telemetry.tsx
@@ -1,8 +1,9 @@
import { appSettingAtom } from '@toeverything/infra';
import { useAtomValue } from 'jotai/react';
-import mixpanel from 'mixpanel-browser';
import { useLayoutEffect } from 'react';
+import { mixpanel } from './utils';
+
export function Telemetry() {
const settings = useAtomValue(appSettingAtom);
useLayoutEffect(() => {