Apply suggestions from code review
This commit is contained in:
parent
4fd88a1ead
commit
7df0ed8ab0
@ -45,7 +45,6 @@ export default function Component({ service }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const leech = torrentData.length - completed;
|
const leech = torrentData.length - completed;
|
||||||
const enableLeechProgress = widget?.enableLeechProgress && Array.isArray(leechTorrents) && leechTorrents.length > 0;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -55,7 +54,7 @@ export default function Component({ service }) {
|
|||||||
<Block label="qbittorrent.seed" value={t("common.number", { value: completed })} />
|
<Block label="qbittorrent.seed" value={t("common.number", { value: completed })} />
|
||||||
<Block label="qbittorrent.upload" value={t("common.bibyterate", { value: rateUl, decimals: 1 })} />
|
<Block label="qbittorrent.upload" value={t("common.bibyterate", { value: rateUl, decimals: 1 })} />
|
||||||
</Container>
|
</Container>
|
||||||
{enableLeechProgress &&
|
{widget?.enableLeechProgress &&
|
||||||
leechTorrents.map((queueEntry) => (
|
leechTorrents.map((queueEntry) => (
|
||||||
<QueueEntry
|
<QueueEntry
|
||||||
progress={queueEntry.progress * 100}
|
progress={queueEntry.progress * 100}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user