mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 14:21:04 +00:00
refactor: clean up reset game achievements logic
This commit is contained in:
@@ -31,7 +31,6 @@ const resetGameAchievements = async (
|
|||||||
{ objectId: game.objectID },
|
{ objectId: game.objectID },
|
||||||
{
|
{
|
||||||
unlockedAchievements: null,
|
unlockedAchievements: null,
|
||||||
achievements: null,
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -40,7 +39,7 @@ const resetGameAchievements = async (
|
|||||||
const gameAchievements = await getUnlockedAchievements(
|
const gameAchievements = await getUnlockedAchievements(
|
||||||
game.objectID,
|
game.objectID,
|
||||||
game.shop,
|
game.shop,
|
||||||
false
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
WindowManager.mainWindow?.webContents.send(
|
WindowManager.mainWindow?.webContents.send(
|
||||||
|
|||||||
Reference in New Issue
Block a user