mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
truncate custom gender to 25 chars long
This commit is contained in:
parent
a47e1c9898
commit
825c613db8
1 changed files with 2 additions and 2 deletions
|
@ -150,8 +150,8 @@ class GenderStep extends React.Component {
|
||||||
value={values.custom}
|
value={values.custom}
|
||||||
/* eslint-disable react/jsx-no-bind */
|
/* eslint-disable react/jsx-no-bind */
|
||||||
onSetCustom={newCustomVal => setValues({
|
onSetCustom={newCustomVal => setValues({
|
||||||
gender: newCustomVal,
|
gender: newCustomVal.substring(0, 25),
|
||||||
custom: newCustomVal
|
custom: newCustomVal.substring(0, 25)
|
||||||
})}
|
})}
|
||||||
onSetCustomRef={this.handleSetCustomRef}
|
onSetCustomRef={this.handleSetCustomRef}
|
||||||
/* eslint-enable react/jsx-no-bind */
|
/* eslint-enable react/jsx-no-bind */
|
||||||
|
|
Loading…
Reference in a new issue