mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: possible bug when catalogue returns games with similar name
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user