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

This commit is contained in:
EYHN committed 2024-05-10 03:58:45 +00:00
1 parent 203459679c
commit f5dceda0cc
1 file changed
+2 -1
+2 -1
View File
@@ -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(() => {