Skip to content

Commit

Permalink
Comments Addressed
Browse files Browse the repository at this point in the history
Hopefully this is now up to standards. :)
  • Loading branch information
Noviny committed Mar 2, 2016
1 parent ed2b6e3 commit 987ee6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions client/scripts/home.js
@@ -1,18 +1,18 @@
var React = require('react');
var reactDOM = require('react-dom');
var ReactDOM = require('react-dom');

/** Attendees */

var AttendingApp = require('../components/AttendingApp.js');
var attendingAppTarget = document.getElementById('react-attending');
if (attendingAppTarget) {
reactDOM.render(<AttendingApp />, attendingAppTarget);
ReactDOM.render(<AttendingApp />, attendingAppTarget);
}

/** Hero (RSVP Button) */

var HeroApp = require('../components/HeroApp.js');
var heroAppTarget = document.getElementById('react-hero-button');
if (heroAppTarget) {
reactDOM.render(<HeroApp />, heroAppTarget);
ReactDOM.render(<HeroApp />, heroAppTarget);
}
2 changes: 0 additions & 2 deletions keystone.js
Expand Up @@ -22,8 +22,6 @@ keystone.init({
'brand': 'SydJS',
'back': '/me',

'db': 'sydjs-site',

'favicon': 'public/favicon.ico',
'less': 'public',
'static': 'public',
Expand Down
6 changes: 5 additions & 1 deletion routes/index.js
Expand Up @@ -28,7 +28,11 @@ keystone.set('500', function (err, req, res, next) {
message = err.message;
err = err.stack;
}
res.send(err, title, message);
res.status(500).render('errors/500', {
err: err,
errorTitle: title,
errorMsg: message
});
});

// Load Routes
Expand Down

0 comments on commit 987ee6b

Please sign in to comment.