From 9db599bb227e743de924a9aca1e7ab10c26550d0 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 11 Sep 2025 15:20:55 +0100 Subject: [PATCH] fix: hide pro subscription notice for self hosters --- apps/web/src/components/NewWorkspaceForm.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/NewWorkspaceForm.tsx b/apps/web/src/components/NewWorkspaceForm.tsx index 0bf95bfa..92468369 100644 --- a/apps/web/src/components/NewWorkspaceForm.tsx +++ b/apps/web/src/components/NewWorkspaceForm.tsx @@ -169,12 +169,16 @@ export function NewWorkspaceForm() { const isValidSlug = slug && slug.length >= 3 && !errors.slug; useEffect(() => { - if (!checkWorkspaceSlugAvailability.isPending && isValidSlug) { + if ( + isCloudEnv && + !checkWorkspaceSlugAvailability.isPending && + isValidSlug + ) { const isAvailable = isWorkspaceSlugAvailable?.isAvailable === true; setShouldShowBenefits(isAvailable); - // Automatically enable Pro toggle when slug is available (only in cloud env) - if (isAvailable && isCloudEnv) { + // Automatically enable Pro toggle when slug is available + if (isAvailable) { setIsProToggleEnabled(true); setLastAvailableSlug(slug); }