Don't link if destination is null

This commit is contained in:
apple502j 2019-01-17 21:23:15 +09:00
parent 71a67db73b
commit 608c08377a

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>) : (supporter.logoSrc ? (
<img
alt=""
src={supporter.logoSrc}
width={supporter.width}
/>
) : (
<div className="text-logo">
{supporter.textLogo}
</div>
))
}
</a>
</span>
))}
</div>