From 49bd52c0dd3d41e1488b52515202c8da60639af3 Mon Sep 17 00:00:00 2001 From: Daniel Edwards Date: Wed, 28 Feb 2024 08:30:28 -0500 Subject: [PATCH] Fix releaseString logic in LatestVersion component --- src/components/LatestVersion/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LatestVersion/index.tsx b/src/components/LatestVersion/index.tsx index 74d5f0d0..98e59879 100644 --- a/src/components/LatestVersion/index.tsx +++ b/src/components/LatestVersion/index.tsx @@ -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 (