diff --git a/app/components/Sharing/Document/SharePopover.tsx b/app/components/Sharing/Document/SharePopover.tsx
index 0770d8086..06fd60f60 100644
--- a/app/components/Sharing/Document/SharePopover.tsx
+++ b/app/components/Sharing/Document/SharePopover.tsx
@@ -287,7 +287,7 @@ function SharePopover({
/>
- {team.sharing && can.share && !collectionSharingDisabled && (
+ {team.sharing && can.share && !collectionSharingDisabled && visible && (
<>
{document.members.length ? : null}