mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-22 18:33:56 +00:00
feat: add success and error toast
This commit is contained in:
@@ -30,7 +30,7 @@ const resetGameAchievements = async (
|
||||
}
|
||||
);
|
||||
|
||||
await HydraApi.delete(`/profile/games/${game.remoteId}/achievements`)
|
||||
await HydraApi.delete(`/profile/games/achievements/${game.remoteId}`)
|
||||
.catch((err) => achievementsLogger.error(err))
|
||||
.then((res) => achievementsLogger.log(res));
|
||||
|
||||
@@ -46,6 +46,7 @@ const resetGameAchievements = async (
|
||||
);
|
||||
} catch (error) {
|
||||
achievementsLogger.error(error);
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user