Browse Source
Preparsed value for RecipientAddress to remove spaces
master
Juan Cortes Ross
7 years ago
No known key found for this signature in database
GPG Key ID: 34A99C03E9455EB8
1 changed files with
2 additions and
1 deletions
-
src/components/RecipientAddress/index.js
|
|
@ -99,9 +99,10 @@ class RecipientAddress extends PureComponent<Props, State> { |
|
|
|
</Right> |
|
|
|
) : null |
|
|
|
|
|
|
|
const preOnChange = text => onChange((text && text.replace(/\s/g, '')) || '') |
|
|
|
return ( |
|
|
|
<Box relative justifyContent="center"> |
|
|
|
<Input {...rest} value={value} onChange={onChange} renderRight={renderRight} /> |
|
|
|
<Input {...rest} value={value} onChange={preOnChange} renderRight={renderRight} /> |
|
|
|
</Box> |
|
|
|
) |
|
|
|
} |
|
|
|