Skip to content

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

Use unfiltered totalDatarooms for trial CTA gating instead of filtered datarooms.length

Cursor Agente853786a4675
diff --git a/pages/datarooms/index.tsx b/pages/datarooms/index.tsx
index 7c8ffa1e..7a071667 100644
--- a/pages/datarooms/index.tsx
+++ b/pages/datarooms/index.tsx
@@ -135,7 +135,7 @@ export default function DataroomsPage() {
})()}
</span>
</div>
- {datarooms.length === 0 ? (
+ {totalDatarooms < limitDatarooms ? (
<AddDataroomModal>
<Button
className="group flex flex-1 items-center justify-start gap-x-3 px-3 text-left"