Oops, toLowerCase call in wrong place
parent
96299e864a
commit
0f720dd6b8
|
@ -219,7 +219,7 @@ module.exports = React.createClass({
|
||||||
query = query.toLowerCase();
|
query = query.toLowerCase();
|
||||||
|
|
||||||
// dount match any that are already on the invite list
|
// dount match any that are already on the invite list
|
||||||
if (this._isOnInviteList(uid).toLowerCase()) {
|
if (this._isOnInviteList(uid)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
_isOnInviteList: function(uid) {
|
_isOnInviteList: function(uid) {
|
||||||
for (let i = 0; i < this.state.inviteList.length; i++) {
|
for (let i = 0; i < this.state.inviteList.length; i++) {
|
||||||
if (this.state.inviteList[i] === uid) {
|
if (this.state.inviteList[i].toLowerCase() === uid) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue