Skip to content

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

fix: hide progress bar when document finished loading

Marc Seitzd1775aeb6bf7
diff --git a/components/documents/process-status-bar.tsx b/components/documents/process-status-bar.tsx
index 0725d373..85791c64 100644
--- a/components/documents/process-status-bar.tsx
+++ b/components/documents/process-status-bar.tsx
@@ -41,6 +41,10 @@ export default function ProcessStatusBar({
);
}
+ if (status && status.hasPages) {
+ return null;
+ }
+
return (
<Progress
value={progress}
diff --git a/pages/documents/[id]/index.tsx b/pages/documents/[id]/index.tsx
index 5309a699..792f4163 100644
--- a/pages/documents/[id]/index.tsx
+++ b/pages/documents/[id]/index.tsx
@@ -400,6 +400,7 @@ export default function DocumentPage() {
/>
)}
+ {/* Stats Card */}
<StatsCard />
{/* Links */}