From bb52c3d3b77becefff211141db743a87e98c91f7 Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Thu, 11 Feb 2021 03:38:46 -0800 Subject: [PATCH] app: Fix new version tag in notes modal --- src/renderer/hooks/useReleaseModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/hooks/useReleaseModal.tsx b/src/renderer/hooks/useReleaseModal.tsx index 36919b9..58e96ca 100644 --- a/src/renderer/hooks/useReleaseModal.tsx +++ b/src/renderer/hooks/useReleaseModal.tsx @@ -172,7 +172,7 @@ function renderChangelog(changelogMd: string, {hideUnreleased = false}: Options const isNewVersion = !isUnreleaseRelease && mostCurrentVersionIndex !== undefined && - mostCurrentVersionIndex < headingIndex; + mostCurrentVersionIndex > headingIndex; const releaseNotesHtml = unified() .use(markdown)