From b148dce3ce5ac4ed8634759a962f8c15141dfecf Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 10 Jan 2017 08:46:00 -0500 Subject: [PATCH] NewUserModal: Fix typo, styling, extraneous import --- js/components/NewUserModal.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/components/NewUserModal.js b/js/components/NewUserModal.js index 75a1f39..c89607e 100644 --- a/js/components/NewUserModal.js +++ b/js/components/NewUserModal.js @@ -13,7 +13,6 @@ var ButtonGroup = ReactBootstrap.ButtonGroup; var models = require('../models'); var User = models.User; -var Error = models.Error; module.exports = React.createClass({ displayName: "NewUserModal", @@ -70,7 +69,7 @@ module.exports = React.createClass({ u.Email = this.state.email; u.Password = this.state.password; if (u.Password != this.state.confirm_password) { - this.setState({error: "Error: password do not match"}); + this.setState({error: "Error: passwords do not match"}); return; } @@ -85,7 +84,7 @@ module.exports = React.createClass({ Create New user - {this.state.error} + {this.state.error}
Name