Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (track.get('track')) {
top = track.get('track');
}
let bottom = 'Untitled';
if (track.get('artist')) {
bottom = track.get('artist');
}
return (
<li>
<div>{top}</div>
{!!bottom && <div>{bottom}</div>}
<div>
{index !== 0 && <a></a>}
<a></a>
</div>
</li>
);
});