mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 18:16:48 +10:00
Merge pull request #503 from sharetribe/fix-account-number-whitespace-handling
Fix change comparison to use cleanedString
This commit is contained in:
commit
fed23f4c56
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue