From 5ff3aabdd53ed69d220605e4e959868b6a81e1a3 Mon Sep 17 00:00:00 2001 From: jameskopacz Date: Tue, 17 Mar 2015 21:18:55 -0500 Subject: [PATCH] stories js var double output fix challengeName and user are in stories/index.jade and stories/show.jade. show.jade is only called from index.jade. This fix removes double output of those vars. --- views/stories/show.jade | 2 -- 1 file changed, 2 deletions(-) diff --git a/views/stories/show.jade b/views/stories/show.jade index 30c3ab9b75..5a40d0ba93 100644 --- a/views/stories/show.jade +++ b/views/stories/show.jade @@ -1,10 +1,8 @@ .spacer script. - var challengeName = 'Camper News'; var storyId = !{JSON.stringify(id)}; var comments = !{JSON.stringify(comments)}; var upVotes = !{JSON.stringify(upVotes)}; - var user = !{JSON.stringify(user)}; var image = !{JSON.stringify(image)}; var hasUserVoted = !{JSON.stringify(hasUserVoted)}; .spacer