fix mistake.

This commit is contained in:
Jason Schwarzenberger 2020-11-20 04:27:28 +00:00
parent a2e5faa3b5
commit 9341b4d966

View File

@ -15,10 +15,10 @@ export const sourceLink = (story) => {
export const infoLine = (story) => (
<div className="info">
{story.score} points by <a href={story.author_link}>{story.author}</a>
{story.score} points by {story.author_link ? <a href={story.author_link}>{story.author}</a> : story.author_link}
&#8203; {moment.unix(story.date).fromNow()}
&#8203; on {story.link ? <a href={story.link}>{story.source}</a> : story.source}
| &#8203; <Link
&#8203; on <a href={story.link}>{story.source}</a> | &#8203;
<Link
className={story.num_comments > 99 ? "hot" : ""}
to={"/" + story.id + "/c"}>
{story.num_comments} comment{story.num_comments !== 1 && "s"}