Skip to content

Commit

Permalink
fix(Rating): Enhance robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Nov 20, 2018
1 parent dfd983a commit 3df9776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rating/rating.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default class Rating extends Component {
value = value >= max ? max : value;
value = value <= min ? min : value;

return value;
return value || 0;
}

getOverlayWidth() {
Expand Down

0 comments on commit 3df9776

Please sign in to comment.