mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
feat: catch error
This commit is contained in:
@@ -14,7 +14,7 @@ const getTrendingGames = async (_event: Electron.IpcMainInvokeEvent) => {
|
|||||||
"/games/trending",
|
"/games/trending",
|
||||||
{ language },
|
{ language },
|
||||||
{ needsAuth: false }
|
{ needsAuth: false }
|
||||||
);
|
).catch(() => []);
|
||||||
|
|
||||||
return trendingGames;
|
return trendingGames;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user