truncate custom gender to 25 chars long

This commit is contained in:
Ben Wheeler 2019-10-01 18:04:47 -04:00
parent a47e1c9898
commit 825c613db8

View file

@ -150,8 +150,8 @@ class GenderStep extends React.Component {
value={values.custom}
/* eslint-disable react/jsx-no-bind */
onSetCustom={newCustomVal => setValues({
gender: newCustomVal,
custom: newCustomVal
gender: newCustomVal.substring(0, 25),
custom: newCustomVal.substring(0, 25)
})}
onSetCustomRef={this.handleSetCustomRef}
/* eslint-enable react/jsx-no-bind */