diff --git a/src/renderer/src/components/sidebar/sidebar.tsx b/src/renderer/src/components/sidebar/sidebar.tsx index 41a5f608..45b8d254 100644 --- a/src/renderer/src/components/sidebar/sidebar.tsx +++ b/src/renderer/src/components/sidebar/sidebar.tsx @@ -101,7 +101,7 @@ export function Sidebar() { }; }, [isResizing]); - const getGameTitle = (game: Game) => { + const getGameTitle = (game: Omit) => { if (game.status === "paused") return t("paused", { title: game.title }); if (lastPacket?.game.id === game.id) { diff --git a/src/renderer/src/pages/downloads/downloads.tsx b/src/renderer/src/pages/downloads/downloads.tsx index 7872cdb5..b3ab4d29 100644 --- a/src/renderer/src/pages/downloads/downloads.tsx +++ b/src/renderer/src/pages/downloads/downloads.tsx @@ -61,7 +61,7 @@ export function Downloads() { updateLibrary(); }); - const getFinalDownloadSize = (game: Game) => { + const getFinalDownloadSize = (game: Omit) => { const isGameDownloading = lastPacket?.game.id === game.id; if (game.fileSize) return formatBytes(game.fileSize); @@ -72,7 +72,7 @@ export function Downloads() { return "N/A"; }; - const getGameInfo = (game: Game) => { + const getGameInfo = (game: Omit) => { const isGameDownloading = lastPacket?.game.id === game.id; const finalDownloadSize = getFinalDownloadSize(game); @@ -132,7 +132,7 @@ export function Downloads() { setShowDeleteModal(true); }; - const getGameActions = (game: Game) => { + const getGameActions = (game: Omit) => { const isGameDownloading = lastPacket?.game.id === game.id; const deleting = isGameDeleting(game.id);