feat: update signature placeholder in preview to provide user-friendly message

This commit is contained in:
seaznCode 2026-01-14 16:57:10 +01:00
parent 160f58d64d
commit edeacea8ea

View File

@ -1587,8 +1587,8 @@ exports.previewLatestForMe = async (req, res) => {
html = html.replace(new RegExp(`{{\s*${k}\s*}}`, 'g'), String(v ?? '')); html = html.replace(new RegExp(`{{\s*${k}\s*}}`, 'g'), String(v ?? ''));
}); });
// Strip signature placeholder in preview (not signed yet) // Show a friendly placeholder for signature in preview (not signed yet)
html = html.replace(/{{\s*signatureImage\s*}}/g, ''); html = html.replace(/{{\s*signatureImage\s*}}/g, 'Your signature will appear here');
// Remove any remaining placeholders except stamp/signature markers // Remove any remaining placeholders except stamp/signature markers
html = sanitizePlaceholders(html, ['companyStamp','companyStampInline','companyStampSmall','profitplanetSignature']); html = sanitizePlaceholders(html, ['companyStamp','companyStampInline','companyStampSmall','profitplanetSignature']);