diff --git a/js/components/EditableStringList.js b/js/components/EditableStringList.js index 06af179..c061ac6 100644 --- a/js/components/EditableStringList.js +++ b/js/components/EditableStringList.js @@ -30,7 +30,7 @@ export default class EditableStringList extends React.Component { this.state.teams.push(text); var lastGroup = this.state.groups[this.state.groups.length - 1]; - if(lastGroup === undefined || lastGroup.length === this.props.groupSize) { + if(lastGroup === undefined || lastGroup.length >= this.props.groupSize) { this.state.groups[this.state.groups.length] = []; } lastGroup = this.state.groups[this.state.groups.length - 1];