From 7cca1cde69c0785e633eaebf21c32905d3589119 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 14 Mar 2025 18:30:04 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Avoid=20displaying=20custom=20do?= =?UTF-8?q?mains=20dropdown=20if=20user=20is=20not=20writer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/builder/src/features/publish/components/SharePage.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/builder/src/features/publish/components/SharePage.tsx b/apps/builder/src/features/publish/components/SharePage.tsx index 33ed7c520..3c23b149d 100644 --- a/apps/builder/src/features/publish/components/SharePage.tsx +++ b/apps/builder/src/features/publish/components/SharePage.tsx @@ -33,7 +33,8 @@ import { integrationsList } from "./embeds/EmbedButton"; export const SharePage = () => { const { t } = useTranslate(); const { workspace } = useWorkspace(); - const { typebot, updateTypebot, publishedTypebot, is404 } = useTypebot(); + const { typebot, updateTypebot, publishedTypebot, is404, currentUserMode } = + useTypebot(); const handlePublicIdChange = async (publicId: string) => { updateTypebot({ updates: { publicId }, save: true }); @@ -137,7 +138,8 @@ export const SharePage = () => { )} )} - {isNotDefined(typebot?.customDomain) && + {currentUserMode === "write" && + isNotDefined(typebot?.customDomain) && env.NEXT_PUBLIC_VERCEL_VIEWER_PROJECT_NAME ? ( <> {hasProPerks(workspace) ? (