Skip to content

Commit

Permalink
Merge pull request #14800 from Expensify/nat-defaultInvite
Browse files Browse the repository at this point in the history
Dont add default message on invite if user removed it
  • Loading branch information
MariaHCD authored Mar 22, 2023
2 parents d5a7cb0 + 037e904 commit fa31301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class WorkspaceInvitePage extends React.Component {
this.setState({shouldDisableButton: true}, () => {
const logins = _.map(this.state.selectedOptions, option => option.login);
const filteredLogins = _.uniq(_.compact(_.map(logins, login => login.toLowerCase().trim())));
Policy.addMembersToWorkspace(filteredLogins, this.state.welcomeNote || this.getWelcomeNote(), this.props.route.params.policyID);
Policy.addMembersToWorkspace(filteredLogins, this.state.welcomeNote, this.props.route.params.policyID);
Navigation.goBack();
});
}
Expand Down

0 comments on commit fa31301

Please sign in to comment.