diff --git a/src/components/RecipientAddress/index.js b/src/components/RecipientAddress/index.js index 24f7895d..b579ebef 100644 --- a/src/components/RecipientAddress/index.js +++ b/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> ) }