Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Jun 3, 2022
1 parent f80d786 commit bf00188
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ function LogoImage({logo}: Props) {
}

export default function FooterLogo({logo}: Props): JSX.Element {
let logoLinkProps = {};
if (logo.target) {
logoLinkProps = {target: logo.target};
}
return logo.href ? (
<Link href={logo.href} className={styles.footerLogoLink} {...logoLinkProps}>
<Link href={logo.href} className={styles.footerLogoLink} target={logo.target}>
<LogoImage logo={logo} />
</Link>
) : (
Expand Down

0 comments on commit bf00188

Please sign in to comment.