Skip to content

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

chore: remove viewId condition

Marc Seitzb99dbb07b5f2
diff --git a/components/view/document-view.tsx b/components/view/document-view.tsx
index f049c03a..12e541d7 100644
--- a/components/view/document-view.tsx
+++ b/components/view/document-view.tsx
@@ -125,8 +125,7 @@ export default function DocumentView({
!emailProtected &&
!linkPassword &&
!submitted &&
- !hasInitiatedSubmit.current &&
- viewData.viewId == ""
+ !hasInitiatedSubmit.current
) {
hasInitiatedSubmit.current = true;
handleSubmission();