Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit db90ec3

Browse files
author
Max Stoiber
committed
Add note about 5,000 email invite max
1 parent 94ae9f2 commit db90ec3

File tree

1 file changed

+8
-1
lines changed
  • src/components/emailInvitationForm

1 file changed

+8
-1
lines changed

src/components/emailInvitationForm/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,13 @@ class EmailInvitationForm extends React.Component<Props, State> {
302302
})
303303
.filter(Boolean);
304304

305+
if (validated.length > 5000) {
306+
this.setState({
307+
importError: 'Cannot invite more than 5,000 emails.',
308+
});
309+
return;
310+
}
311+
305312
const consolidated = [
306313
...this.state.contacts.filter(
307314
contact =>
@@ -377,7 +384,7 @@ class EmailInvitationForm extends React.Component<Props, State> {
377384
<Icon size={20} glyph="upload" /> Import emails
378385
</ActionAsLabel>
379386
<ActionHelpText>
380-
Upload a .json file with an array of email addresses.
387+
Upload a .json file with an array of up to 5,000 email addresses.
381388
</ActionHelpText>
382389

383390
<Action onClick={this.toggleCustomMessage}>

0 commit comments

Comments
 (0)