diff --git a/apps/web/pages/documents.tsx b/apps/web/pages/documents.tsx index 3bda20aff..af6752d47 100644 --- a/apps/web/pages/documents.tsx +++ b/apps/web/pages/documents.tsx @@ -303,17 +303,16 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
- {document.status !== "COMPLETED" && ( - { - event.preventDefault(); - event.stopPropagation(); - router.push("/documents/" + document.id); - }} - /> - )} + { + event.preventDefault(); + event.stopPropagation(); + router.push("/documents/" + document.id); + }} + disabled={document.status === "COMPLETED"} + /> +
{props.children} - {active && ( -
- - {props.label} - -
- )} +
+ + {props.label} + +
); };