diff --git a/src/widgets/flood/component.jsx b/src/widgets/flood/component.jsx index 4676d798b..80ad2b28c 100644 --- a/src/widgets/flood/component.jsx +++ b/src/widgets/flood/component.jsx @@ -11,11 +11,11 @@ export default function Component({ service }) { const { data: torrentData, error: torrentError } = useWidgetAPI(widget, "torrents"); - if (torrentError) { - return ; + if (torrentError || !torrentData?.torrents) { + return ; } - if (!torrentData) { + if (!torrentData || !torrentData.torrents) { return (