fix issue with circle not animating when is equal to 0

This commit is contained in:
Lucas Bento 2019-02-26 08:45:13 +01:00
parent 12e0b66098
commit 1a37f2bb05

View File

@ -35,7 +35,7 @@ export default class AnimatedCircularProgress extends React.PureComponent {
}
animate(toVal, dur, ease) {
const toValue = toVal || this.props.fill;
const toValue = toVal >= 0 ? toVal : this.props.fill;
const duration = dur || this.props.duration;
const easing = ease || this.props.easing;