Skip to content

Commit 6e40724

Browse files
committed
fix(Rating): Enhance robustness
1 parent b3dbe04 commit 6e40724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rating/rating.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export default class Rating extends Component {
204204
value = value >= max ? max : value;
205205
value = value <= min ? min : value;
206206

207-
return value;
207+
return value || 0;
208208
}
209209

210210
getOverlayWidth() {

0 commit comments

Comments
 (0)