Rename fonction to more explicite name

This commit is contained in:
Someone
2023-11-06 01:54:55 +01:00
committed by GitHub
parent 8abec93aad
commit c8dc3abab6

View File

@@ -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