Added a check for the type and then change the info link to end with either movie or tv.

This commit is contained in:
2017-09-27 20:41:49 +02:00
parent 850401fd7a
commit 2bacc54687

View File

@@ -52,7 +52,11 @@ class MovieObject {
style={movieStyle.requestButton}><span>&#x0002B; Request</span></button>;
}
var themoviedbLink = 'https://www.themoviedb.org/movie/' + this.id
if (this.type === 'movie')
var themoviedbLink = 'https://www.themoviedb.org/movie/' + this.id
else if (this.type === 'show')
var themoviedbLink = 'https://www.themoviedb.org/tv/' + this.id
return (