From dd1a98909b39d72aabe78350a36e241af5e936e1 Mon Sep 17 00:00:00 2001 From: Lucas Rego Date: Wed, 23 Dec 2020 09:47:47 -0300 Subject: [PATCH] fix display when zero value --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6c671bb..de555d5 100644 --- a/index.js +++ b/index.js @@ -182,7 +182,7 @@ export default class StarReview extends Component { } render() { - const view = this.displayValue == null ? + const view = (this.displayValue === null || this.displayValue ===undefined) ? (this.props.half ? this.halfRatingMode() : this.fullRatingMode()) : this.displayMode()