From 82337e4e3a6aeb6b0c61f4bccf3e8e2dc6b6890a Mon Sep 17 00:00:00 2001 From: Catalin Pit Date: Wed, 5 Feb 2025 12:02:21 +0200 Subject: [PATCH] fix: typed signature not working (#1635) The `typedSignatureEnabled` prop was removed from the `SignatureField` component, which broke the typed signature meaning that nobody could sign documents by typing their signature. --- .../app/(recipient)/d/[token]/sign-direct-template.tsx | 2 ++ .../src/app/(signing)/sign/[token]/signing-page-view.tsx | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx b/apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx index 73e4aa178..a0d92e595 100644 --- a/apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx +++ b/apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx @@ -189,6 +189,7 @@ export const SignDirectTemplateForm = ({ field={field} onSignField={onSignField} onUnsignField={onUnsignField} + typedSignatureEnabled={template.templateMeta?.typedSignatureEnabled} /> )) .with(FieldType.INITIALS, () => ( @@ -342,6 +343,7 @@ export const SignDirectTemplateForm = ({ onChange={(value) => { setSignature(value); }} + allowTypedSignature={template.templateMeta?.typedSignatureEnabled} /> diff --git a/apps/web/src/app/(signing)/sign/[token]/signing-page-view.tsx b/apps/web/src/app/(signing)/sign/[token]/signing-page-view.tsx index 9c129edb6..e38ff2b85 100644 --- a/apps/web/src/app/(signing)/sign/[token]/signing-page-view.tsx +++ b/apps/web/src/app/(signing)/sign/[token]/signing-page-view.tsx @@ -179,7 +179,13 @@ export const SigningPageView = ({ ) .map((field) => match(field.type) - .with(FieldType.SIGNATURE, () => ) + .with(FieldType.SIGNATURE, () => ( + + )) .with(FieldType.INITIALS, () => ) .with(FieldType.NAME, () => ) .with(FieldType.DATE, () => (