Skip to content

Commit

Permalink
fix: compare contrib emails without case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
aarlaud committed May 10, 2024
1 parent 35d6354 commit 19d44ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/consolidateResults/consolidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ export const consolidateResults = async (
if (
consolidatedContriburosList.find(
(item) =>
item.contributor.email == isContributorInArray.contributor.email,
item.contributor.email.toLowerCase() ==
isContributorInArray.contributor.email.toLowerCase(),
)
) {
consolidatedContriburosList[
consolidatedContriburosList.findIndex(
(item) =>
item.contributor.email ==
isContributorInArray.contributor.email,
item.contributor.email.toLowerCase() ==
isContributorInArray.contributor.email.toLowerCase(),
)
] = isContributorInArray;
} else {
Expand Down

0 comments on commit 19d44ff

Please sign in to comment.