From f8ba72a0e2f3e1dcc03fe74afe3df0c18a66fab5 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sun, 11 Jan 2026 17:14:24 +0000 Subject: [PATCH] refactor: clean up code formatting and improve readability in DownloadGroup and ProfileHero components - Adjusted indentation and spacing for better code clarity in DownloadGroup. - Removed unnecessary blank lines in ProfileHero to streamline the code structure. - Ensured consistent formatting across both components. --- .../src/pages/downloads/download-group.tsx | 63 ++++++++++--------- .../profile/profile-hero/profile-hero.tsx | 6 +- 2 files changed, 36 insertions(+), 33 deletions(-) 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 && (