fixed date bug that displayed 1 days instead of 1 day
This commit is contained in:
@@ -31,6 +31,8 @@ export const FormatDate = (date) => {
|
||||
return Math.floor(diff.as('hours')) + ' hour ago'
|
||||
else
|
||||
return Math.floor(diff.as('hours')) + ' hours ago'
|
||||
else if (Math.floor(diff.as('days')) === 1)
|
||||
return Math.floor(diff.as('days')) + ' day ago'
|
||||
else
|
||||
return Math.floor(diff.as('days')) + ' days ago'
|
||||
}
|
||||
|
Reference in New Issue
Block a user