diff --git a/src/pages/home.tsx b/src/pages/home.tsx index 7bf25f3..dc642cd 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -249,10 +249,12 @@ const DisplayLatestMods = () => { const [latestMods, setLatestMods] = useState([]) useDidMount(() => { - fetchMods({ source: window.location.host, limit: 4 }) + fetchMods({ source: window.location.host }) .then((res) => { - res.sort((a, b) => b.published_at - a.published_at) - setLatestMods(res) + const mods = res + .sort((a, b) => b.published_at - a.published_at) + .slice(0, 4) + setLatestMods(mods) }) .finally(() => { setIsFetchingLatestMods(false)