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:
@@ -52,7 +52,11 @@ class MovieObject {
|
||||
style={movieStyle.requestButton}><span>+ 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 (
|
||||
|
||||
Reference in New Issue
Block a user