Fix change comparison to use cleanedString

This commit is contained in:
Kimmo Puputti 2017-10-17 10:15:31 +03:00
parent b0b84f55f0
commit 0372f4651c

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;