From 1a37f2bb0584a46c5cc2018d8e62fa8170b15045 Mon Sep 17 00:00:00 2001 From: Lucas Bento Date: Tue, 26 Feb 2019 08:45:13 +0100 Subject: [PATCH] fix issue with circle not animating when is equal to 0 --- src/AnimatedCircularProgress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnimatedCircularProgress.js b/src/AnimatedCircularProgress.js index 388779a..fd36067 100644 --- a/src/AnimatedCircularProgress.js +++ b/src/AnimatedCircularProgress.js @@ -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;