feat: update achievements page

This commit is contained in:
Zamitto
2024-10-09 20:33:33 -03:00
parent 8fb31e0e64
commit fa026f82a6
9 changed files with 228 additions and 52 deletions

View File

@@ -83,9 +83,9 @@ export const getGameAchievements = async (
unlocked: false,
unlockTime: null,
icongray,
};
} as GameAchievement;
})
.sort((a: GameAchievement, b: GameAchievement) => {
.sort((a, b) => {
if (a.unlocked && !b.unlocked) return -1;
if (!a.unlocked && b.unlocked) return 1;
if (a.unlocked && b.unlocked) {

View File

@@ -53,7 +53,7 @@ const getPathFromCracker = (cracker: Cracker) => {
if (cracker === Cracker.onlineFix) {
return [
{
folderPath: path.join(publicDocuments, Cracker.onlineFix),
folderPath: path.join(publicDocuments, "OnlineFix"),
fileLocation: ["Stats", "Achievements.ini"],
},
];