feat: showing achievements queue

This commit is contained in:
Zamitto
2024-10-02 22:58:10 -03:00
parent cadb9e8dff
commit f0e0abae8c
2 changed files with 35 additions and 14 deletions

View File

@@ -66,6 +66,9 @@ export const mergeAchievements = async (
if (newAchievements.length && publishNotification) {
const achievementsInfo = newAchievements
.sort((a, b) => {
return a.unlockTime - b.unlockTime;
})
.map((achievement) => {
return JSON.parse(localGameAchievement?.achievements || "[]").find(
(steamAchievement) => {