Merge branch 'main' into feat/visible-fields

This commit is contained in:
David Nguyen
2024-04-19 17:54:32 +07:00
32 changed files with 779 additions and 262 deletions

View File

@ -49,7 +49,12 @@ export default async function SigningPage({ params: { token } }: SigningPageProp
getCompletedFieldsForToken({ token }),
]);
if (!document || !document.documentData || !recipient) {
if (
!document ||
!document.documentData ||
!recipient ||
document.status === DocumentStatus.DRAFT
) {
return notFound();
}