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(
|
||||
App,
|
||||
newsMountPoint,
|
||||
() => console.log('react has rendered and is ready to go go go go go go!!')
|
||||
newsMountPoint
|
||||
);
|
||||
|
@ -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`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user