diff --git a/src/hooks/widgets/torrents/useGetTorrentData.tsx b/src/hooks/widgets/torrents/useGetTorrentData.tsx index 4703d60be..4b5c0ad30 100644 --- a/src/hooks/widgets/torrents/useGetTorrentData.tsx +++ b/src/hooks/widgets/torrents/useGetTorrentData.tsx @@ -13,7 +13,6 @@ export const useGetTorrentData = (params: TorrentsDataRequestParams) => queryKey: ['torrentsData', params.appId], queryFn: async () => fetchData(), refetchOnWindowFocus: true, - refetchIntervalInBackground: POLLING_INTERVAL * 3, refetchInterval(_: any, query: Query) { if (query.state.fetchFailureCount < 3) { return 5000; diff --git a/src/widgets/bitTorrent/BitTorrentTile.tsx b/src/widgets/bitTorrent/BitTorrentTile.tsx index 2bada13f7..e261a2ec2 100644 --- a/src/widgets/bitTorrent/BitTorrentTile.tsx +++ b/src/widgets/bitTorrent/BitTorrentTile.tsx @@ -1,3 +1,4 @@ +import { NormalizedTorrent } from '@ctrl/shared-torrent'; import { Center, Group, @@ -125,7 +126,7 @@ function BitTorrentTile({ widget }: BitTorrentTileProps) { - {data.map((item, index) => ( + {data.map((item: NormalizedTorrent, index: number) => ( ))}