diff --git a/src/features/liveEvents/preferences.ts b/src/features/liveEvents/preferences.ts index 95a0e4093b..2f7af094a8 100644 --- a/src/features/liveEvents/preferences.ts +++ b/src/features/liveEvents/preferences.ts @@ -9,6 +9,7 @@ import { usePreferencesQuery, } from '#/state/queries/preferences' import {useAgent} from '#/state/session' +import * as env from '#/env' import { type LiveEventFeed, type LiveEventFeedMetricContext, @@ -40,7 +41,7 @@ function useWebOnlyDebugLiveEventPreferences() { const agent = useAgent() useEffect(() => { - if (isWeb && typeof window !== 'undefined') { + if (env.IS_DEV && isWeb && typeof window !== 'undefined') { // @ts-ignore window.__updateLiveEventPreferences = async ( action: LiveEventPreferencesAction,