chore: support proper badge collection sorting

This commit is contained in:
Cory Dransfeldt 2024-07-16 11:49:31 -07:00
parent e45261bb31
commit 05cd107af6
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ const fetchAllBadges = async () => {
const transformedData = data.map(badge => ({
...badge,
image: badge['image']['filename_disk'],
}))
})).sort((a, b) => a.sort - b.sort)
return transformedData
}