Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: update button based on group

Marc Seitzfdfd35b7d108
diff --git a/ee/features/permissions/components/dataroom-link-sheet.tsx b/ee/features/permissions/components/dataroom-link-sheet.tsx
index 0e4d8bf5..e507e464 100644
--- a/ee/features/permissions/components/dataroom-link-sheet.tsx
+++ b/ee/features/permissions/components/dataroom-link-sheet.tsx
@@ -922,7 +922,7 @@ export function DataroomLinkSheet({
variant={
linkType === LinkType.DOCUMENT_LINK ||
(linkType === LinkType.DATAROOM_LINK &&
- currentLink?.audienceType === LinkAudienceType.GROUP)
+ data?.audienceType === LinkAudienceType.GROUP)
? "default"
: "outline"
}
@@ -975,4 +975,4 @@ export function DataroomLinkSheet({
)}
</>
);
-}
\ No newline at end of file
+}