Merge pull request #2691 from apple502j/little-bridge

Don't link if destination is null
This commit is contained in:
Benjamin Wheeler 2019-01-18 14:55:46 -05:00 committed by GitHub
commit 77733e2a87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,19 +61,30 @@ const Credits = () => (
className="logo"
key={`logo-${index}`}
>
<a href={supporter.logoDestination}>
{supporter.logoDestination ? (<a href={supporter.logoDestination}>
{supporter.logoSrc ? (
<img
alt=""
src={supporter.logoSrc}
width={supporter.width}
/>
) :
) : (
<div className="text-logo">
{supporter.textLogo}
</div>
}
</a>
)}
</a>) : (supporter.logoSrc ? (
<img
alt=""
src={supporter.logoSrc}
width={supporter.width}
/>
) : (
<div className="text-logo">
{supporter.textLogo}
</div>
))
}
</span>
))}
</div>