From cf5fce1d5a8fa52c9c40c791f3e11c69f781e930 Mon Sep 17 00:00:00 2001 From: Aamir Azad Date: Sun, 30 Jun 2024 20:27:53 +0530 Subject: [PATCH] fix: format failed to get document text --- src/components/document-viewer.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/document-viewer.tsx b/src/components/document-viewer.tsx index aed6730..1dc1e3b 100644 --- a/src/components/document-viewer.tsx +++ b/src/components/document-viewer.tsx @@ -128,8 +128,16 @@ function DocumentViewer(props: { id: number }) { return ; } - if (!pdfUrl) { - return

Failed to get document

; + if (pdfUrl) { + return ( +
+
+

+ Failed to get document +

+
+
+ ); } return (