fix: update branding logic (#2238)

Update branding logic to ensure company details are displayed only when
branding is enabled
This commit is contained in:
Catalin Pit
2025-11-24 12:45:31 +02:00
committed by GitHub
parent ae31860b16
commit 5df3932958

View File

@ -23,7 +23,7 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
</Text> </Text>
)} )}
{branding.brandingCompanyDetails ? ( {branding.brandingEnabled && branding.brandingCompanyDetails && (
<Text className="my-8 text-sm text-slate-400"> <Text className="my-8 text-sm text-slate-400">
{branding.brandingCompanyDetails.split('\n').map((line, idx) => { {branding.brandingCompanyDetails.split('\n').map((line, idx) => {
return ( return (
@ -34,7 +34,9 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
); );
})} })}
</Text> </Text>
) : ( )}
{!branding.brandingEnabled && (
<Text className="my-8 text-sm text-slate-400"> <Text className="my-8 text-sm text-slate-400">
Documenso, Inc. Documenso, Inc.
<br /> <br />