Browse Source

Preparsed value for RecipientAddress to remove spaces

master
Juan Cortes Ross 7 years ago
parent
commit
b1e6231468
No known key found for this signature in database GPG Key ID: 34A99C03E9455EB8
  1. 3
      src/components/RecipientAddress/index.js

3
src/components/RecipientAddress/index.js

@ -99,9 +99,10 @@ class RecipientAddress extends PureComponent<Props, State> {
</Right> </Right>
) : null ) : null
const preOnChange = text => onChange((text && text.replace(/\s/g, '')) || '')
return ( return (
<Box relative justifyContent="center"> <Box relative justifyContent="center">
<Input {...rest} value={value} onChange={onChange} renderRight={renderRight} /> <Input {...rest} value={value} onChange={preOnChange} renderRight={renderRight} />
</Box> </Box>
) )
} }

Loading…
Cancel
Save