Skip to content

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

chore: cleanup

Marc Seitz96ed46fd8c39
diff --git a/components/view/DataroomViewer.tsx b/components/view/DataroomViewer.tsx
index 12579c7d..db28c7e6 100644
--- a/components/view/DataroomViewer.tsx
+++ b/components/view/DataroomViewer.tsx
@@ -188,7 +188,6 @@ export default function DataroomViewer({
folders
.filter((folder) => folder.id === folderId)
.map((folder, index: number, array) => {
- console.log("folder", folder);
return (
<React.Fragment key={index}>
<BreadcrumbSeparator />
diff --git a/components/view/PagesViewer.tsx b/components/view/PagesViewer.tsx
index cf1b1b52..b5ff86ce 100644
--- a/components/view/PagesViewer.tsx
+++ b/components/view/PagesViewer.tsx
@@ -353,7 +353,7 @@ export default function PagesViewer({
</div>
) : null}
</div>
- {feedbackEnabled && pageNumber !== numPagesWithFeedback ? (
+ {feedbackEnabled && pageNumber !== numPages + 1 ? (
<Toolbar viewId={viewId} pageNumber={pageNumber} />
) : null}
{screenshotProtectionEnabled ? <ScreenProtector /> : null}
diff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsx
index 35c74723..71d5f650 100644
--- a/components/view/dataroom/dataroom-view.tsx
+++ b/components/view/dataroom/dataroom-view.tsx
@@ -172,7 +172,6 @@ export default function DataroomView({
// If token is present, run handle submit which will verify token and get document
// If link is not submitted and does not have email / password protection, show the access form
useEffect(() => {
- console.log("viewData", viewData);
if (!didMount.current) {
if ((!submitted && !isProtected) || token || viewData.dataroomViewId) {
handleSubmission();
@@ -182,7 +181,6 @@ export default function DataroomView({
}, [submitted, isProtected, token, viewData.dataroomViewId]);
useEffect(() => {
- console.log("documentData", documentData);
// Ensure we're not running this logic on initial mount, but only when `documentData` changes thereafter
if (didMount.current) {
if (documentData !== null) {
diff --git a/pages/api/views-dataroom.ts b/pages/api/views-dataroom.ts
index e0f183d2..e1924f74 100644
--- a/pages/api/views-dataroom.ts
+++ b/pages/api/views-dataroom.ts
@@ -168,7 +168,7 @@ export default async function handle(
});
// set the default verification url
- let verificationUrl: string = `${process.env.NEXT_PUBLIC_BASE_URL}/view/d/${linkId}/?token=${token}&email=${encodeURIComponent(email)}`;
+ let verificationUrl: string = `${process.env.NEXT_PUBLIC_BASE_URL}/view/${linkId}/?token=${token}&email=${encodeURIComponent(email)}`;
if (link.domainSlug && link.slug) {
// if custom domain is enabled, use the custom domain