From f893c1e2d4251ec490ee2df1a64f68e860500801 Mon Sep 17 00:00:00 2001 From: Misode Date: Thu, 3 Oct 2024 04:56:04 +0200 Subject: [PATCH] Hide pack format bumps on the homepage --- src/app/pages/Home.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/pages/Home.tsx b/src/app/pages/Home.tsx index 70eb831a..2634fc18 100644 --- a/src/app/pages/Home.tsx +++ b/src/app/pages/Home.tsx @@ -130,7 +130,12 @@ function Changelog() { const hugeScreen = useMediaQuery('(min-width: 960px)') const { value: changes } = useAsync(fetchChangelogs, []) - const latestChanges = useMemo(() => changes?.sort((a, b) => b.order - a.order).slice(0, 2), [changes]) + const latestChanges = useMemo(() => { + return changes + ?.sort((a, b) => b.order - a.order) + .filter(c => !(c.tags.includes('pack') && c.tags.includes('breaking'))) + .slice(0, 2) + }, [changes]) return {latestChanges?.map(change => )}