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