fix eslint errors

This commit is contained in:
Andy Edwards 2017-09-18 18:16:41 -05:00 committed by Kevin Qi
parent 7cc5891bdb
commit cc63394466

View File

@ -74,8 +74,8 @@ class CircularProgressbar extends React.Component {
}
render() {
const {percentage, classForPercentage, textForPercentage, className, strokeWidth} = this.props;
const classForPercentage = classForPercentage ? classForPercentage(percentage) : '';
const {percentage, textForPercentage, className, strokeWidth} = this.props;
const classForPercentage = this.props.classForPercentage ? this.props.classForPercentage(percentage) : '';
const pathDescription = this.getPathDescription();
const text = textForPercentage ? textForPercentage(percentage) : null;