Minor fixes I saw after committing

This commit is contained in:
Connor Bryan 2018-07-12 16:28:54 -05:00
parent 7f03ae4918
commit 155900e29e
2 changed files with 6 additions and 2 deletions

View File

@ -59,7 +59,11 @@ const AddressField: React.SFC<Props> = ({
className={`input-group-input ${!isValid && !isLabelEntry ? 'invalid' : ''}`}
isValid={isValid}
type="text"
value={value ? value : isCheckSummed ? toChecksumAddress(currentTo.raw) : currentTo.raw}
value={
value !== null
? value
: isCheckSummed ? toChecksumAddress(currentTo.raw) : currentTo.raw
}
placeholder={placeholder}
readOnly={!!(isReadOnly || readOnly)}
spellCheck={false}

View File

@ -101,7 +101,7 @@ class AddressInputFactoryClass extends Component<Props> {
const controlled = value == null && !onChangeOverride;
return (
<div className={'AddressInput form-group'}>
<div className="AddressInput form-group">
<div className={inputClassName}>
<Query
params={['readOnly']}