From 7df0ed8ab04a2f86395f00d43f448a4e9b49baa0 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:31:55 -0800 Subject: [PATCH] Apply suggestions from code review --- src/widgets/qbittorrent/component.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/widgets/qbittorrent/component.jsx b/src/widgets/qbittorrent/component.jsx index 6c18f2cd..d7fb8bf7 100644 --- a/src/widgets/qbittorrent/component.jsx +++ b/src/widgets/qbittorrent/component.jsx @@ -45,7 +45,6 @@ export default function Component({ service }) { } const leech = torrentData.length - completed; - const enableLeechProgress = widget?.enableLeechProgress && Array.isArray(leechTorrents) && leechTorrents.length > 0; return ( <> @@ -55,7 +54,7 @@ export default function Component({ service }) { - {enableLeechProgress && + {widget?.enableLeechProgress && leechTorrents.map((queueEntry) => (