diff --git a/app/scenes/Document/components/ShareButton.tsx b/app/scenes/Document/components/ShareButton.tsx index afbea2d43..677ef4193 100644 --- a/app/scenes/Document/components/ShareButton.tsx +++ b/app/scenes/Document/components/ShareButton.tsx @@ -21,6 +21,7 @@ function ShareButton({ document }: Props) { const team = useCurrentTeam(); const share = shares.getByDocumentId(document.id); const sharedParent = shares.getByDocumentParents(document.id); + const domain = share?.domain || sharedParent?.domain; const isPubliclyShared = team.sharing && (share?.published || (sharedParent?.published && !document.isDraft)); @@ -54,7 +55,7 @@ function ShareButton({ document }: Props) { neutral {...props} > - {t("Share")} + {t("Share")} {domain && <>· {domain}} )}