fix: possible bug when catalogue returns games with similar name

This commit is contained in:
Zamitto 2024-04-27 20:15:24 -03:00
parent 330dd9c218
commit 6328497372

View file

@ -27,7 +27,7 @@ const getRandomGame = async (_event: Electron.IpcMainInvokeEvent) => {
const catalogueResults = await searchGames({ query: game.title });
if (catalogueResults.length) {
resultObjectId = catalogueResults[0].objectID;
resultObjectId = game.objectID;
}
}
nextGameIndex += 1;