diff --git a/src/widgets/flood/component.jsx b/src/widgets/flood/component.jsx
index 4676d798..80ad2b28 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 (