Skip to content

Commit

Permalink
commit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar committed Mar 23, 2024
1 parent 3fcc317 commit 84644ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/labels/Ago.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export function formatRelative(date: string): string {
addSuffix: false,
});

return getRelativeDateString(relativeDate);
return `${_date > new Date() ? "-" : ""}${getRelativeDateString(
relativeDate,
)}`;
}

const getRelativeDateString = (relativeDate: string) => {
Expand Down

0 comments on commit 84644ce

Please sign in to comment.