diff --git a/apps/web/components/editor/pdf-editor.tsx b/apps/web/components/editor/pdf-editor.tsx index 8e133875e..dd9418a24 100644 --- a/apps/web/components/editor/pdf-editor.tsx +++ b/apps/web/components/editor/pdf-editor.tsx @@ -92,9 +92,15 @@ export default function PDFEditor(props: any) { diff --git a/apps/web/components/editor/pdf-signer.tsx b/apps/web/components/editor/pdf-signer.tsx index b2dbbee64..797745a4c 100644 --- a/apps/web/components/editor/pdf-signer.tsx +++ b/apps/web/components/editor/pdf-signer.tsx @@ -87,9 +87,13 @@ export default function PDFSigner(props: any) { icon={CheckBadgeIcon} className="float-right" onClick={() => { - signDocument(props.document, localSignatures, `${router.query.token}`).then(() => { - router.push(`/documents/${props.document.id}/signed?token=${router.query.token}`); - }); + signDocument(props.document, localSignatures, `${router.query.token}`).then( + () => { + router.push( + `/documents/${props.document.id}/signed?token=${router.query.token}` + ); + } + ); }}> Done @@ -135,7 +139,9 @@ export default function PDFSigner(props: any) { // Check if all fields are signed.. if (signatureFields.length > 0) { // If there are no fields to sign at least one signature is enough - return fields.filter((field) => field.type === FieldType.SIGNATURE).every((field) => field.signature); + return fields + .filter((field) => field.type === FieldType.SIGNATURE) + .every((field) => field.signature); } else { return localSignatures.length > 0; } diff --git a/apps/web/components/editor/pdf-viewer.jsx b/apps/web/components/editor/pdf-viewer.jsx index bd930f3c3..886c02206 100644 --- a/apps/web/components/editor/pdf-viewer.jsx +++ b/apps/web/components/editor/pdf-viewer.jsx @@ -30,7 +30,10 @@ export default function PDFViewer(props) { return ( <> -