Rename function
This commit is contained in:
@@ -37,7 +37,7 @@ const EXTENSIONS = 1;
|
|||||||
|
|
||||||
const allLangs: string[] = [];
|
const allLangs: string[] = [];
|
||||||
|
|
||||||
function groupExtensions(extensions: IExtension[]): GroupedExtensionsResult {
|
function getExtensionsInfo(extensions: IExtension[]): GroupedExtensionsResult {
|
||||||
allLangs.length = 0; // empty the array
|
allLangs.length = 0; // empty the array
|
||||||
const sortedExtensions: GroupedExtensions = {
|
const sortedExtensions: GroupedExtensions = {
|
||||||
[ExtensionState.OBSOLETE]: [],
|
[ExtensionState.OBSOLETE]: [],
|
||||||
@@ -123,7 +123,7 @@ export default function MangaExtensions() {
|
|||||||
|
|
||||||
const groupedExtensions = useMemo(
|
const groupedExtensions = useMemo(
|
||||||
() =>
|
() =>
|
||||||
groupExtensions(filteredExtensions)
|
getExtensionsInfo(filteredExtensions)
|
||||||
.filter((group) => group[EXTENSIONS].length > 0)
|
.filter((group) => group[EXTENSIONS].length > 0)
|
||||||
.filter((group) => isExtensionStateOrLanguage(group[LANGUAGE]) || shownLangs.includes(group[LANGUAGE])),
|
.filter((group) => isExtensionStateOrLanguage(group[LANGUAGE]) || shownLangs.includes(group[LANGUAGE])),
|
||||||
[shownLangs, filteredExtensions],
|
[shownLangs, filteredExtensions],
|
||||||
|
|||||||
Reference in New Issue
Block a user