Skip to content

Commit

Permalink
Merge pull request #10 from Infineon/feature/new-object-format
Browse files Browse the repository at this point in the history
fixed alternative name
  • Loading branch information
tishoyanchev authored Feb 9, 2023
2 parents f27a301 + 234fd5b commit bbe8188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/generate_js.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fs.readdir(svgSourceFolder).then(async (files) => {
const indexFileExportGetterFunction = `\n export function getIcon(icon) {
if(!icons[icon]) {
for(let svg in icons) {
if(icons[svg].alternativeName.toLowerCase() === icon.toLowerCase()) {
if(icons[svg].name.toLowerCase() === icon.toLowerCase()) {
return icons[svg]
}
}
Expand Down

0 comments on commit bbe8188

Please sign in to comment.