🚑 Hotfix deluge torrent progress

This commit is contained in:
ajnart
2022-05-27 09:45:51 +02:00
parent 1f66d64f24
commit 1a420c3b8b

View File

@@ -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) => {