Skip to content

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

feat: add conversion popup again

Marc Seitzdc9962d4b360
diff --git a/components/view/PagesViewerNew.tsx b/components/view/PagesViewerNew.tsx
index e1f2bad8..a9730fcb 100644
--- a/components/view/PagesViewerNew.tsx
+++ b/components/view/PagesViewerNew.tsx
@@ -131,7 +131,7 @@ export default function PagesViewer({
enableQuestion && feedback ? numPages + 1 : numPages;
const numPagesWithAccountCreation = showStatsSlideWithAccountCreation
- ? numPagesWithFeedback
+ ? numPagesWithFeedback + 1
: numPagesWithFeedback;
const pageQuery = router.query.p ? Number(router.query.p) : 1;
diff --git a/pages/view/[linkId]/index.tsx b/pages/view/[linkId]/index.tsx
index 6d137fd6..1f6038b7 100644
--- a/pages/view/[linkId]/index.tsx
+++ b/pages/view/[linkId]/index.tsx
@@ -93,7 +93,10 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
metaUrl: `https://www.papermark.io/view/${linkId}`,
},
showPoweredByBanner: teamPlan === "free",
- showAccountCreationSlide: teamPlan === "free" || teamPlan === "pro",
+ showAccountCreationSlide:
+ teamPlan === "free" ||
+ teamPlan === "pro" ||
+ teamPlan.includes("drtrial"),
useAdvancedExcelViewer:
teamId === "clwt1qwt00000qz39aqra71w6" ||
teamId === "clup33by90000oewh4rfvp2eg",