Skip to content

Commit 5abbba3

Browse files
authored
Merge pull request #4486 from mbrookes/svgicon-remove-unused-style
[SvgIcon] Remove unused style assignment
2 parents 8f83cd0 + 1314ab6 commit 5abbba3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/SvgIcon/SvgIcon.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ class SvgIcon extends Component {
7979
prepareStyles,
8080
} = this.context.muiTheme;
8181

82-
const offColor = color ? color :
83-
style && style.fill ? style.fill :
84-
'currentColor';
85-
82+
const offColor = color ? color : 'currentColor';
8683
const onColor = hoverColor ? hoverColor : offColor;
8784

8885
const mergedStyles = Object.assign({

0 commit comments

Comments
 (0)