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.
This commit is contained in:
jameskopacz
2015-03-17 21:18:55 -05:00
parent a36f978856
commit 5ff3aabdd5

View File

@ -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