diff --git a/src/renderer/src/pages/downloads/downloads.tsx b/src/renderer/src/pages/downloads/downloads.tsx index 2a6b1c6f..8d3dcd90 100644 --- a/src/renderer/src/pages/downloads/downloads.tsx +++ b/src/renderer/src/pages/downloads/downloads.tsx @@ -62,13 +62,12 @@ export function Downloads() { const getFinalDownloadSize = (game: Game) => { const isGameDownloading = lastPacket?.game.id === game.id; - if (!game) return "N/A"; if (game.fileSize) return formatBytes(game.fileSize); if (lastPacket?.game.fileSize && isGameDownloading) return formatBytes(lastPacket?.game.fileSize); - return game.repack?.fileSize ?? "N/A"; + return "N/A"; }; const getGameInfo = (game: Game) => { diff --git a/src/renderer/src/pages/game-details/hero/hero-panel.tsx b/src/renderer/src/pages/game-details/hero/hero-panel.tsx index c07ca22c..1bbf5c34 100644 --- a/src/renderer/src/pages/game-details/hero/hero-panel.tsx +++ b/src/renderer/src/pages/game-details/hero/hero-panel.tsx @@ -21,13 +21,12 @@ export function HeroPanel() { const { progress, eta, lastPacket, isGameDeleting } = useDownload(); const finalDownloadSize = useMemo(() => { - if (!game) return "N/A"; - if (game.fileSize) return formatBytes(game.fileSize); + if (game?.fileSize) return formatBytes(game.fileSize); if (lastPacket?.game.fileSize && game?.status === "active") return formatBytes(lastPacket?.game.fileSize); - return game.repack?.fileSize ?? "N/A"; + return "N/A"; }, [game, lastPacket?.game]); const isGameDownloading =