fix(onboarding) Properly trim field values

This commit is contained in:
Juan Tejada 2017-02-07 14:59:38 -08:00
parent 1287e8743f
commit 53cfe7ac7d

View file

@ -65,7 +65,8 @@ const CreatePageForForm = (FormComponent) => {
if (event.target.type === 'checkbox') {
changes[event.target.id] = event.target.checked;
} else {
changes[event.target.id] = event.target.value;
const {value = ''} = event.target
changes[event.target.id] = value.trim();
}
const accountInfo = Object.assign({}, this.state.accountInfo, changes);