diff --git a/src/renderer/src/pages/downloads/download-group.tsx b/src/renderer/src/pages/downloads/download-group.tsx index 152f0f36..ce26a4b9 100644 --- a/src/renderer/src/pages/downloads/download-group.tsx +++ b/src/renderer/src/pages/downloads/download-group.tsx @@ -783,11 +783,10 @@ export function DownloadGroup({ const actionTypesPromises = completedGames.map(async (game) => { try { - const actionType = - await window.electron.getGameInstallerActionType( - game.shop, - game.objectId - ); + const actionType = await window.electron.getGameInstallerActionType( + game.shop, + game.objectId + ); return { gameId: game.id, actionType }; } catch { return { gameId: game.id, actionType: "open-folder" as const }; @@ -937,31 +936,35 @@ export function DownloadGroup({ )}
- {game.download?.progress === 1 && (() => { - const actionType = gameActionTypes[game.id] || "open-folder"; - const isInstall = actionType === "install"; - - return ( - - ); - })()} + {game.download?.progress === 1 && + (() => { + const actionType = + gameActionTypes[game.id] || "open-folder"; + const isInstall = actionType === "install"; + + return ( + + ); + })()} {isQueuedGroup && game.download?.progress !== 1 && (