summaryrefslogtreecommitdiffstats
path: root/webapp/components/team_general_tab.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/team_general_tab.jsx')
-rw-r--r--webapp/components/team_general_tab.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/team_general_tab.jsx b/webapp/components/team_general_tab.jsx
index 0d7acb0ca..1d749f480 100644
--- a/webapp/components/team_general_tab.jsx
+++ b/webapp/components/team_general_tab.jsx
@@ -8,6 +8,7 @@ import SettingItemMax from './setting_item_max.jsx';
import Client from 'client/web_client.jsx';
import * as Utils from 'utils/utils.jsx';
import TeamStore from 'stores/team_store.jsx';
+import Constants from 'utils/constants.jsx';
import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage} from 'react-intl';
@@ -430,7 +431,7 @@ class GeneralTab extends React.Component {
<input
className='form-control'
type='text'
- maxLength='22'
+ maxLength={Constants.MAX_TEAMNAME_LENGTH.toString()}
onChange={this.updateName}
value={this.state.name}
/>