fix: in game page add source filter while fetching latest 100 mods
All checks were successful
Release to Staging / build_and_release (push) Successful in 46s

This commit is contained in:
daniyal 2024-09-25 21:00:48 +05:00
parent 8608765e79
commit f4f9a8bd17

View File

@ -18,7 +18,7 @@ export const GamesPage = () => {
const [currentPage, setCurrentPage] = useState(1) const [currentPage, setCurrentPage] = useState(1)
useDidMount(() => { useDidMount(() => {
fetchMods({ limit: 100 }).then((mods) => { fetchMods({ limit: 100, source: window.location.host }).then((mods) => {
mods.sort((a, b) => b.published_at - a.published_at) mods.sort((a, b) => b.published_at - a.published_at)
const gameNames = new Set<string>() const gameNames = new Set<string>()