From cc63394466fbc2a5a7d4b23cce03e0059867ea33 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Mon, 18 Sep 2017 18:16:41 -0500 Subject: [PATCH] fix eslint errors --- src/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.jsx b/src/index.jsx index 1f9265b..d3309b6 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -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;