fix: custom email message for self-signers (#1120)

This commit is contained in:
Catalin Pit
2024-05-06 09:22:50 +03:00
committed by GitHub
parent 64e3e2c64b
commit e8d4fe46e5
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ export const sendDocument = async ({
assetBaseUrl,
signDocumentLink,
customBody: renderCustomEmailTemplate(
selfSigner ? selfSignerCustomEmail : customEmail?.message || '',
selfSigner && !customEmail?.message ? selfSignerCustomEmail : customEmail?.message || '',
customEmailTemplate,
),
role: recipient.role,