From ee782f384504ddb89e46bb38513eeb155ae45cbc Mon Sep 17 00:00:00 2001 From: ner Date: Sat, 26 Oct 2024 22:10:35 +0300 Subject: [PATCH] log: magnet --- .../components/TorrentsTable/components/Actions/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx index 31e4211..bc61b4b 100644 --- a/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx +++ b/components/Preview/components/Torrents/components/TorrentsTable/components/Actions/index.tsx @@ -36,7 +36,10 @@ const Actions: FC = ({ torrent, backdrop, title, provider }) => { const prefetchMagnet = (handler: (magnet: string) => void) => () => { if (!torrent.download) return handler(torrent.magnet); - return mutateAsync(torrent.download).then((magnet) => handler(magnet)); + return mutateAsync(torrent.download).then((magnet) => { + console.log('magnet', magnet); + return handler(magnet); + }); }; return (