Skip to content

Commit

Permalink
joshuatz#61: Remove main language in languages list
Browse files Browse the repository at this point in the history
  • Loading branch information
valimero committed Mar 8, 2023
1 parent 0181a8d commit 996c059
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,13 +541,10 @@ window.LinkedinToResumeJson = (() => {
});
}
});
// Merge with main profile language, while preventing duplicate
languages = [
..._outputJsonStable.languages.filter((e) => {
return !languages.find((l) => l.language === e.language);
}),
...languages
];
// // Merge with main profile language, while preventing duplicate
// languages = [
// ...languages
// ];
_outputJsonLegacy.languages = languages;
_outputJsonStable.languages = languages;
resultSummary.sections.languages = languages.length ? 'success' : 'empty';
Expand Down

0 comments on commit 996c059

Please sign in to comment.