Skip to content

Commit

Permalink
Handle deluge with 0 torrents
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Nov 23, 2022
1 parent bec62a0 commit 165add7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/deluge/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Component({ service }) {
}

const { torrents } = torrentData;
const keys = Object.keys(torrents);
const keys = torrents ? Object.keys(torrents) : [];

let rateDl = 0;
let rateUl = 0;
Expand Down

0 comments on commit 165add7

Please sign in to comment.