Skip to content

Commit

Permalink
Minor formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
wildjames committed Nov 23, 2024
1 parent f243dee commit 0c46fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions todoqueue_frontend/src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ export const getTimeSince = (timestamp) => {
output += years === 1 ? "1 year" : `${years} years`;
}
if (months !== 0) {
output += months === 1 ? "1 month" : `${months} months`;
output += months === 1 ? " 1 month" : ` ${months} months`;
}
if (days !== 0) {
output += days === "1" ? "1 day" : `${days} days`;
output += days === "1" ? " 1 day" : ` ${days} days`;
}
if (hours !== 0) {
output += hours === 1 ? " 1 hour" : ` ${hours} hours`;
Expand Down

0 comments on commit 0c46fe3

Please sign in to comment.