mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
fix(onboarding) Properly trim field values
This commit is contained in:
parent
1287e8743f
commit
53cfe7ac7d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue