From 1a420c3b8bbae1f528d9f9e174cb08a0d4d4c1cb Mon Sep 17 00:00:00 2001 From: ajnart Date: Fri, 27 May 2022 09:45:51 +0200 Subject: [PATCH] :ambulance: Hotfix deluge torrent progress --- src/components/modules/downloads/DownloadsModule.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/modules/downloads/DownloadsModule.tsx b/src/components/modules/downloads/DownloadsModule.tsx index 4b3b6b24d..83390c9a9 100644 --- a/src/components/modules/downloads/DownloadsModule.tsx +++ b/src/components/modules/downloads/DownloadsModule.tsx @@ -81,7 +81,9 @@ export default function DownloadComponent() { ); // Loop over qBittorrent torrents merging with deluge torrents const torrents: NormalizedTorrent[] = []; - delugeTorrents.forEach((torrent) => torrents.push(torrent)); + delugeTorrents.forEach((delugeTorrent) => + torrents.push({ ...delugeTorrent, progress: delugeTorrent.progress / 100 }) + ); qBittorrentTorrents.forEach((torrent) => torrents.push(torrent)); const rows = torrents.map((torrent) => {