Skip to content

Commit

Permalink
fix: #7608 always initialize mixpanel (#7675)
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcvay authored Sep 12, 2022
1 parent f752e03 commit 64f7f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-market/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const run = async () => {
try {
const configRes = await fetch('config.json')
const config = (await configRes.json()) as Config
const isLocal = config.appEnv === 'production'
const isLocal = config.appEnv !== 'production'

if (!isLocal && config.sentryDns) {
Sentry.init({
Expand All @@ -52,7 +52,7 @@ const run = async () => {
})
}

if (!isLocal && config.mixPanelToken) {
if (config.mixPanelToken) {
mixpanel.init(config.mixPanelToken, { debug: isLocal })
}

Expand Down

0 comments on commit 64f7f2b

Please sign in to comment.