From a2e5faa3b5ac64e02db4bb1cca9d59e56ecb27b7 Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Fri, 20 Nov 2020 17:02:09 +1300 Subject: [PATCH] fix empty source links. --- webclient/src/utils.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webclient/src/utils.js b/webclient/src/utils.js index 682cce1..abedddb 100644 --- a/webclient/src/utils.js +++ b/webclient/src/utils.js @@ -16,12 +16,11 @@ export const sourceLink = (story) => { export const infoLine = (story) => (
{story.score} points by {story.author} - ​ {moment.unix(story.date).fromNow()} - ​ on {story.source} | ​ - {story.source} : story.source} + | ​ 99 ? "hot" : ""} - to={"/" + story.id + "/c"} - > + to={"/" + story.id + "/c"}> {story.num_comments} comment{story.num_comments !== 1 && "s"}