fix(useTorrent): remove toast from hook deps

This commit is contained in:
Tim 2022-11-02 17:05:49 +01:00
parent 65b576f004
commit ea5e0f8c27

View file

@ -30,7 +30,7 @@ const useTorrent = () => {
});
}, 10000);
}
}, [toast]);
}, []);
React.useEffect(() => {
if (streamingServer.torrent !== null) {
const [, { type }] = streamingServer.torrent;