I'm trying to do conditional rendering on react and although the condition it's either true or false, the elements are not being rendered. What could be the problem? Thanks
<section>
<li className="top-nav__item top-nav__item--active">
{state.profileData[0].likes.map((like) => {
console.log(like) // outputs the user id and appState.user._id
like.user === appState.user._id ? (
<Link
onClick={(e) => startLikingTweet(e, tweetPost)}
to="/"
className="top-nav__link"
>
<IcomoonReact
className="top-nav__icon"
iconSet={iconSet}
color="red"
size={20}
icon="heart"
/>
<span>{tweetPost.likes.length}</span>
</Link>
) : (
<a>hey</a>
);
})}
</li>
</section>