refactor:format code
This commit is contained in:
@@ -4,6 +4,7 @@ function pluralize(time, label) {
|
||||
}
|
||||
return time + label + 's'
|
||||
}
|
||||
|
||||
export function timeAgo(time) {
|
||||
const between = Date.now() / 1000 - Number(time)
|
||||
if (between < 3600) {
|
||||
|
Reference in New Issue
Block a user