diff --git a/app/assets/javascripts/components/components/avatar.jsx b/app/assets/javascripts/components/components/avatar.jsx index 30467da4d4..b8420014bd 100644 --- a/app/assets/javascripts/components/components/avatar.jsx +++ b/app/assets/javascripts/components/components/avatar.jsx @@ -24,7 +24,7 @@ const Avatar = React.createClass({ this.setState({ hovering: false }); }, - componentDidMount () { + handleLoad () { this.canvas.getContext('2d').drawImage(this.image, 0, 0, this.props.size, this.props.size); }, @@ -41,7 +41,7 @@ const Avatar = React.createClass({ return (
- +
);