hide EthValue if the method set does not require it

This commit is contained in:
fernandomg 2020-05-29 21:44:40 -03:00
parent 394a98b424
commit df0562911e
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const EthValue = ({ onSetMax }) => {
} = useField('selectedMethod', { value: true }) } = useField('selectedMethod', { value: true })
const disabled = !ABIService.isPayable(method) const disabled = !ABIService.isPayable(method)
return ( return disabled ? null : (
<> <>
<Row className={classes.fullWidth} margin="xs"> <Row className={classes.fullWidth} margin="xs">
<Paragraph color="disabled" noMargin size="md" style={{ letterSpacing: '-0.5px' }}> <Paragraph color="disabled" noMargin size="md" style={{ letterSpacing: '-0.5px' }}>