Skip to content

Commit

Permalink
Merge pull request #7442 from Expensify/nat-lowercaseinvite
Browse files Browse the repository at this point in the history
Invite lowercase emails to workspaces
  • Loading branch information
pecanoro authored Jan 27, 2022
2 parents 6356971 + 7987e43 commit 57eeb7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ class WorkspaceInvitePage extends React.Component {
}

const logins = _.map(this.state.selectedOptions, option => option.login);
Policy.invite(logins, this.state.welcomeNote || this.getWelcomeNotePlaceholder(), this.props.route.params.policyID);
const filteredLogins = _.uniq(_.compact(_.map(logins, login => login.toLowerCase().trim())));
Policy.invite(filteredLogins, this.state.welcomeNote || this.getWelcomeNotePlaceholder(), this.props.route.params.policyID);
}

/**
Expand Down

0 comments on commit 57eeb7a

Please sign in to comment.