fix(home): latest mods published_at sort
All checks were successful
Release to Staging / build_and_release (push) Successful in 51s
All checks were successful
Release to Staging / build_and_release (push) Successful in 51s
This commit is contained in:
parent
0c7e61cadd
commit
834701aa2c
@ -254,6 +254,8 @@ const DisplayLatestMods = () => {
|
|||||||
useDidMount(() => {
|
useDidMount(() => {
|
||||||
fetchMods({ source: window.location.host })
|
fetchMods({ source: window.location.host })
|
||||||
.then((mods) => {
|
.then((mods) => {
|
||||||
|
// Sort by the latest (published_at descending)
|
||||||
|
mods.sort((a, b) => b.published_at - a.published_at)
|
||||||
setLatestMods(mods)
|
setLatestMods(mods)
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user