Merge pull request #503 from sharetribe/fix-account-number-whitespace-handling

Fix change comparison to use cleanedString
This commit is contained in:
Kimmo Puputti 2017-10-17 12:14:01 +03:00 committed by GitHub
commit fed23f4c56

View file

@ -143,7 +143,7 @@ class TokenInputFieldComponent extends Component {
createToken(accountData)
.then(token => {
const changedValues = inputsNeeded.filter(
inputType => values[inputType] !== this.state[inputType].value
inputType => values[inputType] !== cleanedString(this.state[inputType].value)
);
const valuesAreUnchanged = changedValues.length === 0;