Skip to content

The Open Source DocuSign Alternative.

fix: update branding logic (#2238)

Catalin Pit5df393295853
diff --git a/packages/email/template-components/template-footer.tsx b/packages/email/template-components/template-footer.tsx
index 0f90ec281..58b015c4d 100644
--- a/packages/email/template-components/template-footer.tsx
+++ b/packages/email/template-components/template-footer.tsx
@@ -23,7 +23,7 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
</Text>
)}
- {branding.brandingCompanyDetails ? (
+ {branding.brandingEnabled && branding.brandingCompanyDetails && (
<Text className="my-8 text-sm text-slate-400">
{branding.brandingCompanyDetails.split('\n').map((line, idx) => {
return (
@@ -34,7 +34,9 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
);
})}
</Text>
- ) : (
+ )}
+
+ {!branding.brandingEnabled && (
<Text className="my-8 text-sm text-slate-400">
Documenso, Inc.
<br />