Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Icon): Dont call super in componentDidMount
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Sep 18, 2018
1 parent b9bbcb4 commit 428761b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ class Icon extends React.Component {
static iconUrl = 'https://cdn.heydoctor.co/assets/css/material-design-icons.css';
static iconPrefix = 'mdi';

componentDidMount(props) {
super(props);

componentDidMount() {
if (!this.constructor.injected) {
this.constructor.injected = true;
const link = document.createElement('link');
Expand Down

0 comments on commit 428761b

Please sign in to comment.