feat: catch error

This commit is contained in:
Zamitto 2024-09-12 20:56:10 -03:00
parent 813a46bf3e
commit b0bc754ffc

View file

@ -14,7 +14,7 @@ const getTrendingGames = async (_event: Electron.IpcMainInvokeEvent) => {
"/games/trending",
{ language },
{ needsAuth: false }
);
).catch(() => []);
return trendingGames;
};