Skip to content

Commit

Permalink
Mixpanel Dev Fix (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkircos authored Apr 14, 2023
1 parent 2132805 commit e350220
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/quadratic/AnalyticsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ const loadAmplitudeAnalytics = async (user: User | undefined) => {

const loadMixPanelAnalytics = async (user: User | undefined) => {
if (!process.env.REACT_APP_MIXPANEL_ANALYTICS_KEY && process.env.REACT_APP_MIXPANEL_ANALYTICS_KEY !== 'none') {
mixpanel.init('FAKE_KEY');
mixpanel.disable();
return;
}

Expand Down

0 comments on commit e350220

Please sign in to comment.