From a4a02c95de5763fe092a1a4ab09181b124f74d9e Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 18 Feb 2025 19:40:12 -0600 Subject: [PATCH] Debug insights automatically only in dev --- src/state/AppStateProvider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/AppStateProvider.tsx b/src/state/AppStateProvider.tsx index e9191bc3..9a191069 100644 --- a/src/state/AppStateProvider.tsx +++ b/src/state/AppStateProvider.tsx @@ -8,7 +8,7 @@ import { getAuthAction } from '@/auth/actions'; import useSWR from 'swr'; import { HIGH_DENSITY_GRID, - IS_PRODUCTION, + IS_DEVELOPMENT, MATTE_PHOTOS, SHOW_ZOOM_CONTROLS, } from '@/app/config'; @@ -64,7 +64,7 @@ export default function AppStateProvider({ const [shouldShowBaselineGrid, setShouldShowBaselineGrid] = useState(false); const [shouldDebugInsights, setShouldDebugInsights] = - useState(!IS_PRODUCTION); + useState(IS_DEVELOPMENT); const invalidateSwr = useCallback(() => setSwrTimestamp(Date.now()), []);