mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
fix: possible bug when catalogue returns games with similar name
This commit is contained in:
parent
ac3234aad9
commit
4acb9938f3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue