mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 05:46:17 +00:00
fix: fixing achievements on larger view
Some checks failed
Build / build (ubuntu-latest) (push) Has been cancelled
Build / build (windows-2022) (push) Has been cancelled
Build Renderer / build (push) Has been cancelled
Release / build (ubuntu-latest) (push) Has been cancelled
Release / build (windows-2022) (push) Has been cancelled
Some checks failed
Build / build (ubuntu-latest) (push) Has been cancelled
Build / build (windows-2022) (push) Has been cancelled
Build Renderer / build (push) Has been cancelled
Release / build (ubuntu-latest) (push) Has been cancelled
Release / build (windows-2022) (push) Has been cancelled
This commit is contained in:
@@ -58,7 +58,9 @@ export const LibraryGameCardLarge = memo(function LibraryGameCardLarge({
|
||||
window.electron
|
||||
.getUnlockedAchievements(game.objectId, game.shop)
|
||||
.then((achievements) => {
|
||||
setUnlockedAchievementsCount(achievements.length);
|
||||
setUnlockedAchievementsCount(
|
||||
achievements.filter((a) => a.unlocked).length
|
||||
);
|
||||
});
|
||||
}, [game]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user