Merge pull request #38 from KevinMidboe/bugfix/infolinkForShows

Added a check for the type and then change the info link to end with … #35
This commit is contained in:
2017-09-27 20:43:54 +02:00
committed by GitHub

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 (