Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed Jun 24, 2023
1 parent 084308a commit 5c0dcf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screens/Extensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const EXTENSIONS = 1;

const allLangs: string[] = [];

function groupExtensions(extensions: IExtension[]): GroupedExtensionsResult {
function getExtensionsInfo(extensions: IExtension[]): GroupedExtensionsResult {
allLangs.length = 0; // empty the array
const sortedExtensions: GroupedExtensions = {
[ExtensionState.OBSOLETE]: [],
Expand Down Expand Up @@ -123,7 +123,7 @@ export default function MangaExtensions() {

const groupedExtensions = useMemo(
() =>
groupExtensions(filteredExtensions)
getExtensionsInfo(filteredExtensions)
.filter((group) => group[EXTENSIONS].length > 0)
.filter((group) => isExtensionStateOrLanguage(group[LANGUAGE]) || shownLangs.includes(group[LANGUAGE])),
[shownLangs, filteredExtensions],
Expand Down

0 comments on commit 5c0dcf1

Please sign in to comment.