From 6e57faecb05f0dd208b52fccfdf1fa1cbd8edc50 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 17 Sep 2016 16:14:02 +0100 Subject: [PATCH] trim whitespace when adding to list --- src/components/views/dialogs/ChatInviteDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: [],