Skip to content

Commit c600a4a

Browse files
author
Chubby Granny Chaser
committed
fix: fixing achievements on larger view
1 parent d14951f commit c600a4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/renderer/src/pages/library/library-game-card-large.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export const LibraryGameCardLarge = memo(function LibraryGameCardLarge({
5858
window.electron
5959
.getUnlockedAchievements(game.objectId, game.shop)
6060
.then((achievements) => {
61-
setUnlockedAchievementsCount(achievements.length);
61+
setUnlockedAchievementsCount(
62+
achievements.filter((a) => a.unlocked).length
63+
);
6264
});
6365
}, [game]);
6466

0 commit comments

Comments
 (0)