summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-07 18:12:53 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-07-07 18:12:53 -0700
commit65dc307e685ad4a0b6df4263edd3f6b890ddd207 (patch)
tree16eff9303524e54be598ac1011ac9bb7c5cda2a4 /web/react
parentddeb3ec7385c921e809b6c5ad337b23ea9ce8776 (diff)
downloadchat-65dc307e685ad4a0b6df4263edd3f6b890ddd207.tar.gz
chat-65dc307e685ad4a0b6df4263edd3f6b890ddd207.tar.bz2
chat-65dc307e685ad4a0b6df4263edd3f6b890ddd207.zip
Small tweaks and cleanup
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/invite_member_modal.jsx11
1 files changed, 1 insertions, 10 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx
index bfcbfc94f..9ff67ae1b 100644
--- a/web/react/components/invite_member_modal.jsx
+++ b/web/react/components/invite_member_modal.jsx
@@ -43,7 +43,6 @@ module.exports = React.createClass({
var first_name_errors = this.state.first_name_errors;
var last_name_errors = this.state.last_name_errors;
var valid = true;
- var profiles = UserStore.getProfiles();
for (var i = 0; i < count; i++) {
var index = invite_ids[i];
@@ -53,13 +52,6 @@ module.exports = React.createClass({
email_errors[index] = "Please enter a valid email address";
valid = false;
} else {
- for (var email in profiles) {
- if (email === invite.email) {
- email_errors[index] = "This person is already on your team";
- valid = false;
- }
- }
-
email_errors[index] = "";
}
@@ -151,8 +143,7 @@ module.exports = React.createClass({
id_count: 0,
email_errors: {},
first_name_errors: {},
- last_name_errors: {},
- server_errors: {}
+ last_name_errors: {}
};
},
render: function() {