Added a check for the type and then change the info link to end with … #35 #38

Merged
KevinMidboe merged 1 commits from bugfix/infolinkForShows into master 2017-09-27 18:43:55 +00:00

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 (