Skip to content

Commit

Permalink
fix(Icon): allow icon name to be prefixed with icon-
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeex3 authored and pauljeter committed Feb 26, 2019
1 parent c9d25a9 commit bd8801e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/src/lib/Icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Icon extends React.PureComponent {
: name;

return iconNames.includes(iconName)
? `icon-${name}`
? `icon-${iconName}`
: consoleHandler('name-error', iconName);
};

Expand Down

0 comments on commit bd8801e

Please sign in to comment.