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`; }