Skip to content

Commit

Permalink
fix: prevent rendering 0 if no content in <footer /> (#249)
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Liepina <[email protected]>
Co-authored-by: Andi Pätzold <[email protected]>
  • Loading branch information
anna-liepina and andipaetzold authored Jan 3, 2025
1 parent eabc751 commit a13d7ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export const CtfFooter = (props: FooterFieldsFragment) => {
<p className={classes.copyright}>
{t('legal.copyright', { year: new Date().getFullYear() })}
</p>
{footerContent?.legalLinks?.featuredPagesCollection?.items?.length && (
{!!footerContent?.legalLinks?.featuredPagesCollection?.items?.length && (
<nav role="navigation" className={classes.legalMenuWrapper}>
<ul className={classes.legalMenu}>
{renderMenuGroupLinks(
Expand Down

0 comments on commit a13d7ca

Please sign in to comment.