mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-08 16:42:15 +01:00
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 humanizedDuration = duration.humanize();
|
||||
|
||||
const ratioGlobal = getRatio(widget, torrents, false);
|
||||
const ratioWithFilter = getRatio(widget, torrents, true);
|
||||
const ratioGlobal = getTorrentsRatio(widget, torrents, false);
|
||||
const ratioWithFilter = getTorrentsRatio(widget, torrents, true);
|
||||
|
||||
return (
|
||||
<Flex direction="column" sx={{ height: '100%' }} ref={ref}>
|
||||
@@ -237,7 +237,7 @@ const filterTorrentsByLabels = (
|
||||
return torrents.filter((torrent) => !labels.includes(torrent.label as string));
|
||||
};
|
||||
|
||||
const getRatio = (
|
||||
const getTorrentsRatio = (
|
||||
widget: ITorrent,
|
||||
torrents: NormalizedTorrent[],
|
||||
applyAllFilter:boolean
|
||||
|
||||
Reference in New Issue
Block a user