From 2bacc5468743f1cf43fd94ebff662d13adaddb06 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Wed, 27 Sep 2017 20:41:49 +0200 Subject: [PATCH] Added a check for the type and then change the info link to end with either movie or tv. --- client/app/components/MovieObject.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/app/components/MovieObject.jsx b/client/app/components/MovieObject.jsx index bacf327..5b6f58a 100644 --- a/client/app/components/MovieObject.jsx +++ b/client/app/components/MovieObject.jsx @@ -52,7 +52,11 @@ class MovieObject { style={movieStyle.requestButton}>+ Request; } - 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 (