Fix value validator in send custom transaction

This commit is contained in:
Germán Martínez 2019-09-10 13:15:04 +02:00
parent 8aad19bcf3
commit 1af8ffad4c
2 changed files with 2 additions and 4 deletions

View File

@ -116,7 +116,7 @@ const ReviewCustomTx = ({
<Row margin="md" align="center"> <Row margin="md" align="center">
<Img src={getEthAsToken().logoUri} height={28} alt="Ether" onError={setImageToPlaceholder} /> <Img src={getEthAsToken().logoUri} height={28} alt="Ether" onError={setImageToPlaceholder} />
<Paragraph size="md" noMargin className={classes.value}> <Paragraph size="md" noMargin className={classes.value}>
{tx.value} {tx.value || 0}
{' ETH'} {' ETH'}
</Paragraph> </Paragraph>
</Row> </Row>

View File

@ -20,7 +20,6 @@ import {
composeValidators, composeValidators,
mustBeFloat, mustBeFloat,
maxValue, maxValue,
greaterThan,
} from '~/components/forms/validator' } from '~/components/forms/validator'
import SafeInfo from '~/routes/safe/components/Balances/SendModal/SafeInfo' import SafeInfo from '~/routes/safe/components/Balances/SendModal/SafeInfo'
import ArrowDown from '../assets/arrow-down.svg' import ArrowDown from '../assets/arrow-down.svg'
@ -126,7 +125,6 @@ const SendCustomTx = ({
type="text" type="text"
validate={composeValidators( validate={composeValidators(
mustBeFloat, mustBeFloat,
greaterThan(0),
maxValue(ethBalance), maxValue(ethBalance),
)} )}
placeholder="Value*" placeholder="Value*"