chore(console): Remove some console logs (#17978)
This commit is contained in:
committed by
mrugesh mohapatra
parent
e3247b4554
commit
06b648b402
@ -14,6 +14,5 @@ const App = (
|
|||||||
|
|
||||||
render(
|
render(
|
||||||
App,
|
App,
|
||||||
newsMountPoint,
|
newsMountPoint
|
||||||
() => console.log('react has rendered and is ready to go go go go go go!!')
|
|
||||||
);
|
);
|
||||||
|
@ -34,7 +34,7 @@ function pluralise(singular, count) {
|
|||||||
function getTimeString(pubDate) {
|
function getTimeString(pubDate) {
|
||||||
const now = new Date(Date.now());
|
const now = new Date(Date.now());
|
||||||
const minuteDiff = differenceInMinutes(now, pubDate);
|
const minuteDiff = differenceInMinutes(now, pubDate);
|
||||||
console.log(typeof minuteDiff);
|
|
||||||
if (minuteDiff < 60) {
|
if (minuteDiff < 60) {
|
||||||
return `${minuteDiff} ${pluralise('minute', minuteDiff)} ago`;
|
return `${minuteDiff} ${pluralise('minute', minuteDiff)} ago`;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user