Fixed: Skip MovieDetails Ratings Render if Null

This commit is contained in:
Qstick
2020-04-03 10:06:24 -04:00
committed by GitHub
parent 1137c8d770
commit 74c0e409e7

View File

@@ -351,10 +351,13 @@ class MovieDetails extends Component {
</span>
}
<HeartRating
rating={ratings.value}
iconSize={20}
/>
{
!!ratings &&
<HeartRating
rating={ratings.value}
iconSize={20}
/>
}
</div>
</div>