You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-04 23:02:14 +03:00
Use null instead of false
This commit is contained in:
@@ -76,7 +76,7 @@ module.exports = React.createClass({
|
|||||||
// If there is and it's valid add it to the local inviteList
|
// If there is and it's valid add it to the local inviteList
|
||||||
if (this.refs.textinput.value !== '') {
|
if (this.refs.textinput.value !== '') {
|
||||||
inviteList = this._addInputToList();
|
inviteList = this._addInputToList();
|
||||||
if (inviteList === false) return;
|
if (inviteList === null) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inviteList.length > 0) {
|
if (inviteList.length > 0) {
|
||||||
@@ -365,7 +365,7 @@ module.exports = React.createClass({
|
|||||||
return inviteList;
|
return inviteList;
|
||||||
} else {
|
} else {
|
||||||
this.setState({ error: true });
|
this.setState({ error: true });
|
||||||
return false;
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user