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} 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 */