diff --git a/lib/missions/giphy_match.js b/lib/missions/giphy_match.js index bac2006..6bcd45b 100644 --- a/lib/missions/giphy_match.js +++ b/lib/missions/giphy_match.js @@ -30,6 +30,9 @@ challenge.prototype.onPost = function(post, reply){ getGiphyToMatch(this.game).then( function(giphy_to_match){ + if(!giphy_to_match){ + return; + } var giphy = post.Giphy; var matches = giphy.id === giphy_to_match.id; if(matches){