diff --git a/src/components/structures/RoomDirectory.js b/src/components/structures/RoomDirectory.js index cdf8d19e55..9104695938 100644 --- a/src/components/structures/RoomDirectory.js +++ b/src/components/structures/RoomDirectory.js @@ -204,7 +204,7 @@ module.exports = React.createClass({ }).done(() => { modal.close(); this.refreshRoomList(); - }, function(err) { + }, (err) => { modal.close(); this.refreshRoomList(); console.error("Failed to " + step + ": " + err);