diff --git a/apps/web/app/(marketing)/changelog/[slug]/page.tsx b/apps/web/app/(marketing)/changelog/[slug]/page.tsx index 15f3d35c4..5a700a790 100644 --- a/apps/web/app/(marketing)/changelog/[slug]/page.tsx +++ b/apps/web/app/(marketing)/changelog/[slug]/page.tsx @@ -35,17 +35,17 @@ async function changelogEntryLoader(slug: string) { // Find previous and next entries in the timeline const currentIndex = allEntries.items.findIndex((item) => item.slug === slug); - const previousEntry = + const newerEntry = currentIndex > 0 ? allEntries.items[currentIndex - 1] : null; - const nextEntry = + const olderEntry = currentIndex < allEntries.items.length - 1 ? allEntries.items[currentIndex + 1] : null; return { entry, - previousEntry, - nextEntry, + previousEntry: olderEntry, + nextEntry: newerEntry, }; }