feat: redoing page

This commit is contained in:
Zamitto
2024-10-18 01:00:29 -03:00
parent ea5b07a1ec
commit 2700f27d03
4 changed files with 50 additions and 38 deletions

View File

@@ -51,7 +51,7 @@ const getAchievementLocalUser = async (shop: string, objectId: string) => {
...achievementData,
unlocked: false,
unlockTime: null,
icon: icongray,
icongray: icongray,
} as UserAchievement;
})
.sort((a, b) => {

View File

@@ -42,7 +42,9 @@ export const getGameAchievementData = async (
where: { objectId, shop },
})
.then((gameAchievements) => {
return JSON.parse(gameAchievements?.achievements || "[]");
return JSON.parse(
gameAchievements?.achievements || "[]"
) as AchievementData[];
});
});
};