mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Fix change comparison to use cleanedString
This commit is contained in:
parent
b0b84f55f0
commit
0372f4651c
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