🐛 Fix a small bug inside the torrent module

This commit is contained in:
ajnart
2022-06-07 12:41:49 +02:00
parent b72afc2270
commit 4f1640b70a

View File

@@ -91,10 +91,9 @@ export default function DownloadComponent() {
</tr>
);
// Loop over qBittorrent torrents merging with deluge torrents
const rows = torrents.map((torrent) => {
if (torrent.progress === 1 && hideComplete) {
return [];
}
const rows = torrents
.filter((torrent) => !(torrent.progress === 1 && hideComplete))
.map((torrent) => {
const downloadSpeed = torrent.downloadSpeed / 1024 / 1024;
const uploadSpeed = torrent.uploadSpeed / 1024 / 1024;
return (