Skip to content

The Open Source DocuSign Alternative.

fix: handle older cert data

Mythie6f3cea52e8af
diff --git a/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx b/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx
index 5b233e47b..447e4ad72 100644
--- a/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx
+++ b/apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx
@@ -214,9 +214,7 @@ export default async function SigningCertificate({ searchParams }: SigningCertif
<p className="text-muted-foreground mt-1 text-sm print:text-xs">
<span className="font-medium">Device:</span>{' '}
<span className="inline-block">
- {getDevice(
- logs.DOCUMENT_RECIPIENT_COMPLETED[0]?.userAgent ?? 'Unknown',
- )}
+ {getDevice(logs.DOCUMENT_RECIPIENT_COMPLETED[0]?.userAgent)}
</span>
</p>
</>