diff --git a/packages/app/src/changelog/internal/changelog-sheet.tsx b/packages/app/src/changelog/internal/changelog-sheet.tsx
index 1a628e8b41..fd7bc82450 100644
--- a/packages/app/src/changelog/internal/changelog-sheet.tsx
+++ b/packages/app/src/changelog/internal/changelog-sheet.tsx
@@ -189,18 +189,20 @@ const ReleaseView = memo(function ReleaseView({ release, isCurrent }: ReleaseVie
{t(showingAllChanges ? "changelog.hideAllChanges" : "changelog.showAllChanges")}
) : null}
- {showsSections
- ? keyChangelogSections(release.sections).map(({ key, section }) => (
-
- {section.title ? {section.title} : null}
- {section.body ? : null}
-
- ))
- : null}
+ {showsSections ? : null}
);
});
+function ReleaseSections({ sections }: { sections: readonly ChangelogSection[] }) {
+ return keyChangelogSections(sections).map(({ key, section }) => (
+
+ {section.title ? {section.title} : null}
+ {section.body ? : null}
+
+ ));
+}
+
/** A release can repeat a section title; the occurrence keeps the key stable. */
function keyChangelogSections(
sections: readonly ChangelogSection[],