new: profile box. fix: landing page latest mods #31
@ -251,6 +251,7 @@ const DisplayLatestMods = () => {
|
|||||||
useDidMount(() => {
|
useDidMount(() => {
|
||||||
fetchMods({ source: window.location.host, limit: 4 })
|
fetchMods({ source: window.location.host, limit: 4 })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
res.sort((a, b) => b.published_at - a.published_at)
|
||||||
setLatestMods(res)
|
setLatestMods(res)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user