diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js
index 966e3cffbb..3060f50987 100644
--- a/src/components/structures/UserSettings.js
+++ b/src/components/structures/UserSettings.js
@@ -189,14 +189,6 @@ const IgnoredUser = React.createClass({
},
render: function() {
- let unbanButton;
-
- if (this.props.canUnban) {
- unbanButton =
- { _t('Unban') }
- ;
- }
-
return (
@@ -243,7 +235,7 @@ module.exports = React.createClass({
vectorVersion: undefined,
rejectingInvites: false,
mediaDevices: null,
- ignoredUsers: []
+ ignoredUsers: [],
};
},
@@ -385,14 +377,13 @@ module.exports = React.createClass({
},
_refreshIgnoredUsers: function(userIdUnignored=null) {
- let users = MatrixClientPeg.get().getIgnoredUsers();
+ const users = MatrixClientPeg.get().getIgnoredUsers();
if (userIdUnignored) {
- var index = users.indexOf(userIdUnignored);
+ const index = users.indexOf(userIdUnignored);
if (index !== -1) users.splice(index, 1);
}
- console.log("Updating ignored users: "+JSON.stringify(users));
this.setState({
- ignoredUsers: users
+ ignoredUsers: users,
});
},
@@ -848,14 +839,16 @@ module.exports = React.createClass({
_renderIgnoredUsers: function() {
if (this.state.ignoredUsers.length > 0) {
- let updateHandler = this._refreshIgnoredUsers;
+ const updateHandler = this._refreshIgnoredUsers;
return (
{ _t("Ignored Users") }
{this.state.ignoredUsers.map(function(userId) {
- return ();
+ return ();
})}