Skip to content

Commit

Permalink
Trim whitespace in new chat->email address field (keybase#19188)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjb authored Aug 31, 2019
1 parent 1dade14 commit 6b7323e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/team-building/email-input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const EmailInput = ({namespace}: EmailInputProps) => {

const onChange = React.useCallback(
text => {
// Remove leading or trailing whitespace
text = text.trim()
setEmailString(text)
const isNewInputValid = validateEmailAddress(text)
if (isNewInputValid !== isEmailValid) {
Expand Down

0 comments on commit 6b7323e

Please sign in to comment.