Skip to content

Commit

Permalink
Fix releaseString logic in LatestVersion component (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanwards committed Feb 28, 2024
1 parent 4be9f53 commit cdbdfc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LatestVersion/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ReleaseRemark = ({
const daysSinceRelease =
moment(latestReleaseDate).diff(moment(), "days") * -1;
const releaseString =
daysSinceRelease !== 0
daysSinceRelease === 0
? "today"
: `${moment.duration(daysSinceRelease, "days").humanize()} ago`;
return (
Expand Down

0 comments on commit cdbdfc2

Please sign in to comment.