Skip to content

Commit

Permalink
fix(core): mixpanel error when opt-out (#6861)
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed May 10, 2024
1 parent 2034596 commit f5dceda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/frontend/core/src/telemetry.tsx
Original file line number Diff line number Diff line change
@@ -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(() => {
Expand Down

0 comments on commit f5dceda

Please sign in to comment.