mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 11:42:10 +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 });
|
const catalogueResults = await searchGames({ query: game.title });
|
||||||
|
|
||||||
if (catalogueResults.length) {
|
if (catalogueResults.length) {
|
||||||
resultObjectId = catalogueResults[0].objectID;
|
resultObjectId = game.objectID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nextGameIndex += 1;
|
nextGameIndex += 1;
|
||||||
|
|
Loading…
Reference in a new issue