From 06b648b402960166943448155c06922a77b5fad0 Mon Sep 17 00:00:00 2001 From: Stuart Taylor Date: Sat, 4 Aug 2018 22:44:18 +0100 Subject: [PATCH] chore(console): Remove some console logs (#17978) --- news/client.js | 3 +-- news/components/ArticleMeta.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/news/client.js b/news/client.js index b7c53e4f21..5c0697efb7 100644 --- a/news/client.js +++ b/news/client.js @@ -14,6 +14,5 @@ const App = ( render( App, - newsMountPoint, - () => console.log('react has rendered and is ready to go go go go go go!!') + newsMountPoint ); diff --git a/news/components/ArticleMeta.js b/news/components/ArticleMeta.js index 4d1d527b49..aedb01fe85 100644 --- a/news/components/ArticleMeta.js +++ b/news/components/ArticleMeta.js @@ -34,7 +34,7 @@ function pluralise(singular, count) { function getTimeString(pubDate) { const now = new Date(Date.now()); const minuteDiff = differenceInMinutes(now, pubDate); - console.log(typeof minuteDiff); + if (minuteDiff < 60) { return `${minuteDiff} ${pluralise('minute', minuteDiff)} ago`; }