Skip to content

πŸ†™ Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Update PostHog initialization to always include person profiles and refine contribution check logic

Nayam Amarshea46868a5a872
diff --git a/renderer/components/posthog-provider-wrapper.tsx b/renderer/components/posthog-provider-wrapper.tsx
index 4aa194d..4817b4d 100644
--- a/renderer/components/posthog-provider-wrapper.tsx
+++ b/renderer/components/posthog-provider-wrapper.tsx
@@ -14,7 +14,7 @@ const PostHogProviderWrapper = ({
useEffect(() => {
posthog.init("phc_QMcmlmComdofjfaRPzoN4KV9ziV2KgOwAOVyu4J3dIc", {
api_host: "https://us.i.posthog.com",
- person_profiles: "identified_only",
+ person_profiles: "always",
autocapture: false,
capture_pageview: false,
capture_pageleave: false,
@@ -41,7 +41,7 @@ const PostHogProviderWrapper = ({
});
}, []);
- if (!enableContribution) return <>{children}</>;
+ if (enableContribution === false) return <>{children}</>;
return <PostHogProvider client={posthog}>{children}</PostHogProvider>;
};