mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 15:22:47 +01:00
Compare commits
1 Commits
v0.13.8-rc
...
v0.13.8-rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86f4aa1d28 |
@@ -33,7 +33,7 @@ const {
|
||||
const age = (ticket: Ticket) => {
|
||||
const days = intervalToDuration({ start: new Date(ticket.created), end: new Date() }).days
|
||||
|
||||
if (days === 0) return 'today'
|
||||
if (!days) return 'today'
|
||||
if (days === 1) return 'yesterday'
|
||||
|
||||
return `${days} days`
|
||||
|
||||
Reference in New Issue
Block a user