From cdbdfc2411481871747bf8229059aa685ca19dd8 Mon Sep 17 00:00:00 2001 From: Daniel Edwards Date: Wed, 28 Feb 2024 08:39:17 -0500 Subject: [PATCH] Fix releaseString logic in LatestVersion component (#137) --- 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 (