diff --git a/src/components/views/dialogs/ChatInviteDialog.js b/src/components/views/dialogs/ChatInviteDialog.js index c2ad8883d4..aa694f6838 100644 --- a/src/components/views/dialogs/ChatInviteDialog.js +++ b/src/components/views/dialogs/ChatInviteDialog.js @@ -142,7 +142,7 @@ module.exports = React.createClass({ var check = Invite.isValidAddress(this.refs.textinput.value); if (check === true || check === null) { var inviteList = this.state.inviteList.slice(); - inviteList.push(this.refs.textinput.value); + inviteList.push(this.refs.textinput.value.trim()); this.setState({ inviteList: inviteList, queryList: [],