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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

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