feat: combined notification when add game to library

This commit is contained in:
Zamitto
2025-06-03 16:04:29 -03:00
parent 8e6f9fdb00
commit 0c379d6c49
2 changed files with 46 additions and 29 deletions

View File

@@ -183,10 +183,13 @@ export function GameDetailsContextProvider({
.catch(() => {});
}
window.electron.syncGameByObjectId(shop, objectId).then(() => {
if (abortController.signal.aborted) return;
updateGame();
});
window.electron
.syncGameByObjectId(shop, objectId)
.then(() => {
if (abortController.signal.aborted) return;
updateGame();
})
.catch(() => {});
}, [
updateGame,
dispatch,