feat: route adjustment

This commit is contained in:
Zamitto 2024-09-29 11:36:44 -03:00
parent eda47fc6af
commit 333b143b17
2 changed files with 15 additions and 8 deletions

View file

@ -145,7 +145,9 @@ export function GameDetailsContextProvider({
.then((achievements) => {
setAchievements(achievements);
})
.catch(() => {});
.catch(() => {
// TODO: handle user not logged in error
});
updateGame();
}, [updateGame, dispatch, gameTitle, objectID, shop, i18n.language]);
@ -183,7 +185,8 @@ export function GameDetailsContextProvider({
window.electron
.getGameAchievements(objectID!, shop as GameShop)
.then(setAchievements);
.then(setAchievements)
.catch(() => {});
}
);