Rename fonction to more explicite name
This commit is contained in:
@@ -144,8 +144,8 @@ function TorrentTile({ widget }: TorrentTileProps) {
|
|||||||
const duration = dayjs.duration(difference, 'ms');
|
const duration = dayjs.duration(difference, 'ms');
|
||||||
const humanizedDuration = duration.humanize();
|
const humanizedDuration = duration.humanize();
|
||||||
|
|
||||||
const ratioGlobal = getRatio(widget, torrents, false);
|
const ratioGlobal = getTorrentsRatio(widget, torrents, false);
|
||||||
const ratioWithFilter = getRatio(widget, torrents, true);
|
const ratioWithFilter = getTorrentsRatio(widget, torrents, true);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex direction="column" sx={{ height: '100%' }} ref={ref}>
|
<Flex direction="column" sx={{ height: '100%' }} ref={ref}>
|
||||||
@@ -237,7 +237,7 @@ const filterTorrentsByLabels = (
|
|||||||
return torrents.filter((torrent) => !labels.includes(torrent.label as string));
|
return torrents.filter((torrent) => !labels.includes(torrent.label as string));
|
||||||
};
|
};
|
||||||
|
|
||||||
const getRatio = (
|
const getTorrentsRatio = (
|
||||||
widget: ITorrent,
|
widget: ITorrent,
|
||||||
torrents: NormalizedTorrent[],
|
torrents: NormalizedTorrent[],
|
||||||
applyAllFilter:boolean
|
applyAllFilter:boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user